SciPost Code Repository

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

Fix ithenticate package response 2

parent 348ddd47
No related branches found
No related tags found
No related merge requests found
......@@ -818,7 +818,7 @@ class iThenticateReportForm(forms.ModelForm):
client = self.client
response = client.documents.get(self.document_id)
if response['status'] == 200:
return response.get('data')[0]
return response.get('data')[0].get('documents')[0]
self.add_error(None, "Updating failed. iThenticate didn't return valid data [1]")
for msg in client.messages:
......
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