From 976e6a5e6e7fa61d4996dc20864199cbeac57877 Mon Sep 17 00:00:00 2001
From: ankitjavalkar
Date: Fri, 5 Apr 2019 15:46:16 +0530
Subject: Change in_dir directory nomenclature for code server

---
 yaksh/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
cgit