From 5ced2fd296ab7d69c46062d2222f0dc9c963dc76 Mon Sep 17 00:00:00 2001 From: Florent Yvon Date: Thu, 2 May 2024 12:36:47 +0100 Subject: [PATCH] Ignore case when getting curation tracker publication by DOI --- curation/imports/curation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curation/imports/curation.py b/curation/imports/curation.py index 10fd3fb6..cccb9f78 100644 --- a/curation/imports/curation.py +++ b/curation/imports/curation.py @@ -136,7 +136,7 @@ def run_curation_import(self): curation_pub = None if study_import.study_publication.doi: try: - curation_pub = CurationPublicationAnnotation.objects.using(curation_tracker).get(doi=study_import.study_publication.doi) + curation_pub = CurationPublicationAnnotation.objects.using(curation_tracker).get(doi__iexact=study_import.study_publication.doi) print(" > Study found using the publication DOI") except CurationPublicationAnnotation.DoesNotExist: print(" ! Study NOT found using the publication DOI")