summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authormaheshgudi2018-03-07 19:36:03 +0530
committermaheshgudi2018-03-16 15:15:50 +0530
commitdf7bfb4e4900028831fb3563e998891ef5d0229d (patch)
treee57e20c093e3ead53dfa0261b1b72f3cf6dc371e /yaksh/views.py
parent2feec77152518f5f60ddfc46bb22857278c1d7ba (diff)
downloadonline_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.py4
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