summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2016-10-25 15:01:43 +0530
committeradityacp2016-10-25 15:01:43 +0530
commit3fcf7c6772bf6a3a91c4348a309e80ccc4592bba (patch)
tree8618358a51c1e2103f9f76b35775fdc5d0151ca4 /yaksh/models.py
parent08d8478a6a57991b0130c5610db6efa7bc9e5a66 (diff)
downloadonline_test-3fcf7c6772bf6a3a91c4348a309e80ccc4592bba.tar.gz
online_test-3fcf7c6772bf6a3a91c4348a309e80ccc4592bba.tar.bz2
online_test-3fcf7c6772bf6a3a91c4348a309e80ccc4592bba.zip
removed creation of user output directory
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index cc64b98..7f9eead 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -206,12 +206,6 @@ class Profile(models.Model):
"""Return the output directory for the user."""
user_dir = join(settings.OUTPUT_DIR, str(self.user.username))
- if not exists(user_dir):
- os.makedirs(user_dir)
- # Make it rwx by others.
- os.chmod(user_dir, stat.S_IROTH | stat.S_IWOTH | stat.S_IXOTH
- | stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR
- | stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP)
return user_dir
@@ -680,7 +674,7 @@ class QuestionPaper(models.Model):
def create_demo_quiz_ppr(self, demo_quiz, user):
question_paper = QuestionPaper.objects.create(quiz=demo_quiz,
- total_marks=5.0,
+ total_marks=7.0,
shuffle_questions=True
)
questions = Question.objects.filter(active=True,