summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorankitjavalkar2019-04-05 15:46:16 +0530
committerankitjavalkar2019-04-05 15:46:16 +0530
commit976e6a5e6e7fa61d4996dc20864199cbeac57877 (patch)
tree10259b0baa6a771d111722fde997c3901abfa5a0 /yaksh
parent0c8b272aa25210d71e03715c1209402d2b770a98 (diff)
downloadonline_test-976e6a5e6e7fa61d4996dc20864199cbeac57877.tar.gz
online_test-976e6a5e6e7fa61d4996dc20864199cbeac57877.tar.bz2
online_test-976e6a5e6e7fa61d4996dc20864199cbeac57877.zip
Change in_dir directory nomenclature for code server
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 1d6bb89..781f0ae 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1103,7 +1103,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)