summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing2019-04-15 15:01:10 +0530
committerGitHub2019-04-15 15:01:10 +0530
commiteac34f9a8fc69e07efd31b005ce296f9071b8a46 (patch)
treed0c8c1ae95d8003ab75c6d4f7d07b2f51f785f0c
parent82f1fa9f778d85619343bbb79b9faec41696261f (diff)
parent976e6a5e6e7fa61d4996dc20864199cbeac57877 (diff)
downloadonline_test-eac34f9a8fc69e07efd31b005ce296f9071b8a46.tar.gz
online_test-eac34f9a8fc69e07efd31b005ce296f9071b8a46.tar.bz2
online_test-eac34f9a8fc69e07efd31b005ce296f9071b8a46.zip
Merge pull request #596 from ankitjavalkar/fix-in-dir-unicode
Change in_dir directory nomenclature for code server
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index eb18bb7..d0161c1 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1148,7 +1148,7 @@ class Profile(models.Model):
def get_user_dir(self):
"""Return the output directory for the user."""
- user_dir = join(settings.OUTPUT_DIR, str(self.user.username))
+ user_dir = join(settings.OUTPUT_DIR, str(self.user.id))
if not exists(user_dir):
os.makedirs(user_dir)
os.chmod(user_dir, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)