summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 05528c7..bdcc43e 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1090,14 +1090,10 @@ class AnswerPaper(models.Model):
user_answer.marks = (question.points * result['weightage'] /
question.get_maximum_test_case_weightage()) \
if question.partial_grading and question.type == 'code' else question.points
- # user_answer.marks = question.points * result['weightage'] \
- # if question.partial_grading and question.type == 'code' else question.points
else:
user_answer.marks = (question.points * result['weightage'] /
question.get_maximum_test_case_weightage()) \
if question.partial_grading and question.type == 'code' else 0
- # user_answer.marks = question.points * result['weightage'] \
- # if question.partial_grading and question.type == 'code' else 0
user_answer.save()
self.update_marks('completed')
return True, msg