diff options
author | adityacp | 2020-08-28 08:24:54 +0530 |
---|---|---|
committer | adityacp | 2020-08-28 08:24:54 +0530 |
commit | c77f0ca5616faa4e9426d610e38da1b6231346dc (patch) | |
tree | 72f41e5739a2b25cf15a4fa420236a3881cecc94 /yaksh/views.py | |
parent | 42dda2d828915f0f79dcdd816984489238661ebd (diff) | |
download | online_test-c77f0ca5616faa4e9426d610e38da1b6231346dc.tar.gz online_test-c77f0ca5616faa4e9426d610e38da1b6231346dc.tar.bz2 online_test-c77f0ca5616faa4e9426d610e38da1b6231346dc.zip |
Multiple changes
- Fix a bug where user cannot submit zero as answer
- Fix UI in question statistics
- Fix a bug where the trial question paper was not updated
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 15ebd03..c1798b5 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -821,7 +821,7 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None, previous_question=current_question) else: user_answer = request.POST.get('answer') - if not user_answer: + if not str(user_answer): msg = "Please submit a valid answer." return show_question( request, current_question, paper, notification=msg, |