diff options
author | Prabhu Ramachandran | 2016-10-21 23:12:41 +0530 |
---|---|---|
committer | GitHub | 2016-10-21 23:12:41 +0530 |
commit | 08d8478a6a57991b0130c5610db6efa7bc9e5a66 (patch) | |
tree | c94df7d571b2294a10833fe719ea51411db7e077 /yaksh/views.py | |
parent | adae38cb47d8c36280f2e6cd40ccade3ce1108c5 (diff) | |
parent | 8e06cee7b1fea13d121d2d0677b0a8e3ea7f2e38 (diff) | |
download | online_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.py | 4 |
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 |