From c309058e60bc62dac4c4a5cc3fdce842fba5e1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Thu, 14 Oct 2021 17:04:59 +0200 Subject: [PATCH] Apply unaccent to parameters before calling iThenticate --- scipost_django/submissions/plagiarism.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scipost_django/submissions/plagiarism.py b/scipost_django/submissions/plagiarism.py index 9ed5ea933..823775c09 100644 --- a/scipost_django/submissions/plagiarism.py +++ b/scipost_django/submissions/plagiarism.py @@ -5,6 +5,7 @@ __license__ = "AGPL v3" from django.conf import settings from .exceptions import InvalidDocumentError +from common.utils import unaccent import iThenticate as iThenticateAPI @@ -87,9 +88,9 @@ class iThenticate: response = self.client.documents.add( document, folder_id, - author.user.first_name, - author.user.last_name, - submission.title, + unaccent(author.user.first_name), + unaccent(author.user.last_name), + unaccent(submission.title), ) if response['status'] == 200: -- GitLab