diff options
author | maheshgudi | 2017-03-09 01:18:51 +0530 |
---|---|---|
committer | maheshgudi | 2017-03-09 01:18:51 +0530 |
commit | 1c5e1dfef3fb4af8bc070fe190cec552ef3732b0 (patch) | |
tree | 8b74b06882ab0d349be96a5a4938d25a63164847 /yaksh/models.py | |
parent | 433cc099527acfc7e5146c06f848c283a806f8b5 (diff) | |
download | online_test-1c5e1dfef3fb4af8bc070fe190cec552ef3732b0.tar.gz online_test-1c5e1dfef3fb4af8bc070fe190cec552ef3732b0.tar.bz2 online_test-1c5e1dfef3fb4af8bc070fe190cec552ef3732b0.zip |
pep8 changes in models and user_data
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index d60a377..fdf10bd 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1153,7 +1153,8 @@ class AnswerPaper(models.Model): elif question.type == 'string': testcase = question.get_test_case() if testcase.string_check == "lower": - if testcase.correct.lower().splitlines() == user_answer.lower().splitlines(): + if testcase.correct.lower().splitlines()\ + == user_answer.lower().splitlines(): result['success'] = True result['error'] = ['Correct answer'] else: @@ -1164,8 +1165,8 @@ class AnswerPaper(models.Model): elif question.type == 'float': testcase = question.get_test_case() if abs(testcase.correct-user_answer) <= testcase.error_margin: - result['success'] = True - result['error'] = ['Correct answer'] + result['success'] = True + result['error'] = ['Correct answer'] elif question.type == 'code': user_dir = self.user.profile.get_user_dir() |