summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authoradityacp2016-10-17 12:43:13 +0530
committeradityacp2016-10-17 12:44:16 +0530
commit1bfd71cc024dc7ea72099deff52efbeac7db87b5 (patch)
tree8ed81eea85902155fed1b29f7c8256b5d0d2e187 /yaksh/views.py
parent9b60cc7b8f000f96d5f818f759a6c63d5a26f239 (diff)
downloadonline_test-1bfd71cc024dc7ea72099deff52efbeac7db87b5.tar.gz
online_test-1bfd71cc024dc7ea72099deff52efbeac7db87b5.tar.bz2
online_test-1bfd71cc024dc7ea72099deff52efbeac7db87b5.zip
extract uploaded questions zip in temp
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 049788a..611403d 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -929,8 +929,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