SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 08e88284 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

fix publication tex filename regex

parent f7606d7e
No related branches found
No related tags found
No related merge requests found
...@@ -560,7 +560,7 @@ class ProofsRepository(models.Model): ...@@ -560,7 +560,7 @@ class ProofsRepository(models.Model):
# Attempt to fetch the publication file # Attempt to fetch the publication file
try: 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( publication_file = project.files.get(
file_path=publication_filename, ref="main" file_path=publication_filename, ref="main"
) )
......
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