diff options
author | adityacp | 2020-09-23 18:01:04 +0530 |
---|---|---|
committer | adityacp | 2020-09-23 18:01:04 +0530 |
commit | 7589f9838ac5080a5f2fb5f9c92522bc722ab80b (patch) | |
tree | 8f7739f823914a77bce0bfebeeb9e2a8af1a0c98 /yaksh/models.py | |
parent | 3130680c9a405cbaa77108a48d3923790920b2e3 (diff) | |
download | online_test-7589f9838ac5080a5f2fb5f9c92522bc722ab80b.tar.gz online_test-7589f9838ac5080a5f2fb5f9c92522bc722ab80b.tar.bz2 online_test-7589f9838ac5080a5f2fb5f9c92522bc722ab80b.zip |
Add more tests
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index f46ddda..8db054d 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -2888,7 +2888,6 @@ class LessonQuizAnswer(models.Model): elif question.type == 'float': user_answer = float(user_answer) tc_status = [] - user_answer = float(user_answer) for tc in question.get_test_cases(): if abs(tc.correct - user_answer) <= tc.error_margin: tc_status.append(True) |