SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit c309058e authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Apply unaccent to parameters before calling iThenticate

parent 2f5d0548
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ __license__ = "AGPL v3" ...@@ -5,6 +5,7 @@ __license__ = "AGPL v3"
from django.conf import settings from django.conf import settings
from .exceptions import InvalidDocumentError from .exceptions import InvalidDocumentError
from common.utils import unaccent
import iThenticate as iThenticateAPI import iThenticate as iThenticateAPI
...@@ -87,9 +88,9 @@ class iThenticate: ...@@ -87,9 +88,9 @@ class iThenticate:
response = self.client.documents.add( response = self.client.documents.add(
document, document,
folder_id, folder_id,
author.user.first_name, unaccent(author.user.first_name),
author.user.last_name, unaccent(author.user.last_name),
submission.title, unaccent(submission.title),
) )
if response['status'] == 200: if response['status'] == 200:
......
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