From 08e88284a1b9d628f99203366cb35e0e53616945 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Tue, 15 Oct 2024 11:33:35 +0200 Subject: [PATCH] fix publication tex filename regex --- scipost_django/production/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipost_django/production/models.py b/scipost_django/production/models.py index 0ed51561c..c8170f3a1 100644 --- a/scipost_django/production/models.py +++ b/scipost_django/production/models.py @@ -560,7 +560,7 @@ class ProofsRepository(models.Model): # Attempt to fetch the publication file try: - publication_filename = [file["name"] for file in project.repository_tree() if re.findall("\d+(_\d+)*.tex", file["name"])][0] + publication_filename = [file["name"] for file in project.repository_tree() if re.findall("SciPost\w+(?:_\d+)+.tex", file["name"])][0] publication_file = project.files.get( file_path=publication_filename, ref="main" ) -- GitLab