SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 4d71a402 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Upload plagiarism document fix, attempt 2

parent fc7c2791
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ class iThenticate: ...@@ -88,7 +88,7 @@ class iThenticate:
if response['status'] == 200: if response['status'] == 200:
submission.add_general_event('The document has been submitted for a plagiarism check.') submission.add_general_event('The document has been submitted for a plagiarism check.')
return response.get('data', [{}])[0] return response.get('data', [{'uploaded': [{}]}])[0].get('uploaded')[0]
return None return None
def get_url(self, document_id): def get_url(self, document_id):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment