diff options
author | maheshgudi | 2018-03-07 19:36:03 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:15:50 +0530 |
commit | df7bfb4e4900028831fb3563e998891ef5d0229d (patch) | |
tree | e57e20c093e3ead53dfa0261b1b72f3cf6dc371e /yaksh/views.py | |
parent | 2feec77152518f5f60ddfc46bb22857278c1d7ba (diff) | |
download | online_test-df7bfb4e4900028831fb3563e998891ef5d0229d.tar.gz online_test-df7bfb4e4900028831fb3563e998891ef5d0229d.tar.bz2 online_test-df7bfb4e4900028831fb3563e998891ef5d0229d.zip |
Remove lists from variable name
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index f644ac9..b97ae93 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -727,8 +727,8 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None, elif current_question.type == 'mcc': user_answer = request.POST.getlist('answer') elif current_question.type == 'arrange': - user_answer_list = request.POST.get('answer').split(',') - user_answer = [int(ids) for ids in user_answer_list] + user_answer_ids = request.POST.get('answer').split(',') + user_answer = [int(ids) for ids in user_answer_ids] elif current_question.type == 'upload': # if time-up at upload question then the form is submitted without # validation |