summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-10-21 23:12:41 +0530
committerGitHub2016-10-21 23:12:41 +0530
commit08d8478a6a57991b0130c5610db6efa7bc9e5a66 (patch)
treec94df7d571b2294a10833fe719ea51411db7e077 /yaksh/views.py
parentadae38cb47d8c36280f2e6cd40ccade3ce1108c5 (diff)
parent8e06cee7b1fea13d121d2d0677b0a8e3ea7f2e38 (diff)
downloadonline_test-08d8478a6a57991b0130c5610db6efa7bc9e5a66.tar.gz
online_test-08d8478a6a57991b0130c5610db6efa7bc9e5a66.tar.bz2
online_test-08d8478a6a57991b0130c5610db6efa7bc9e5a66.zip
Merge pull request #148 from adityacp/fix_extract_files
Fix Questions zip extract files
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 270a47c..68e641e 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -927,8 +927,8 @@ def show_all_questions(request):
file_name = questions_file.name.split('.')
if file_name[-1] == "zip":
ques = Question()
- extract_files(questions_file)
- ques.read_json("questions_dump.json", user)
+ files, extract_path = extract_files(questions_file)
+ ques.read_json(extract_path, user, files)
else:
message = "Please Upload a ZIP file"
context['message'] = message