summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
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