diff options
author | adityacp | 2017-03-17 20:47:55 +0530 |
---|---|---|
committer | adityacp | 2017-03-17 20:47:55 +0530 |
commit | 5ae3841e4c432d5c0ee378ac9a4142f205b1dbb6 (patch) | |
tree | a4148d1d9abd9ddf83dbdab1554fc07947952c12 /yaksh/views.py | |
parent | 6b4817fb731f9f61114b8395aaccdfd379589e28 (diff) | |
download | online_test-5ae3841e4c432d5c0ee378ac9a4142f205b1dbb6.tar.gz online_test-5ae3841e4c432d5c0ee378ac9a4142f205b1dbb6.tar.bz2 online_test-5ae3841e4c432d5c0ee378ac9a4142f205b1dbb6.zip |
Change consolidate_answer_data to get assignment uploads
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index d4d11f5..bd3540d 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -500,7 +500,7 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None): # If we were not skipped, we were asked to check. For any non-mcq # questions, we obtain the results via XML-RPC with the code executed # safely in a separate process (the code_server.py) running as nobody. - json_data = current_question.consolidate_answer_data(user_answer) \ + json_data = current_question.consolidate_answer_data(user_answer, user) \ if current_question.type == 'code' or \ current_question.type == 'upload' else None result = paper.validate_answer(user_answer, current_question, json_data) |