From 7589f9838ac5080a5f2fb5f9c92522bc722ab80b Mon Sep 17 00:00:00 2001 From: adityacp Date: Wed, 23 Sep 2020 18:01:04 +0530 Subject: Add more tests --- yaksh/models.py | 1 - 1 file changed, 1 deletion(-) (limited to 'yaksh/models.py') 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) -- cgit