SciPost Code Repository

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

change git repo creation behavior

parent e97928cb
No related branches found
No related tags found
No related merge requests found
...@@ -583,6 +583,12 @@ class Command(BaseCommand): ...@@ -583,6 +583,12 @@ class Command(BaseCommand):
status=ProofsRepository.PROOFS_REPO_TEMPLATE_ONLY status=ProofsRepository.PROOFS_REPO_TEMPLATE_ONLY
) )
for repo in repos_to_be_formatted: for repo in repos_to_be_formatted:
if repo.journal_abbrev == "MigPol":
# We cannot format the skeleton of MigPol because it is not a LaTeX file
repo.status = ProofsRepository.PROOFS_REPO_TEMPLATE_FORMATTED
repo.save()
continue
try: try:
self._format_skeleton(repo) self._format_skeleton(repo)
repo.status = ProofsRepository.PROOFS_REPO_TEMPLATE_FORMATTED repo.status = ProofsRepository.PROOFS_REPO_TEMPLATE_FORMATTED
...@@ -604,6 +610,11 @@ class Command(BaseCommand): ...@@ -604,6 +610,11 @@ class Command(BaseCommand):
self._copy_arxiv_source_files(repo) self._copy_arxiv_source_files(repo)
repo.status = ProofsRepository.PROOFS_REPO_PRODUCTION_READY repo.status = ProofsRepository.PROOFS_REPO_PRODUCTION_READY
repo.save() repo.save()
else:
# We cannot automatically copy the source files of non-arXiv submissions
repo.status = ProofsRepository.PROOFS_REPO_PRODUCTION_READY
repo.save()
except Exception as e: except Exception as e:
self.stdout.write( self.stdout.write(
self.style.ERROR( self.style.ERROR(
......
...@@ -372,7 +372,7 @@ class ProofsRepository(models.Model): ...@@ -372,7 +372,7 @@ class ProofsRepository(models.Model):
if proceedings_issue := self.stream.submission.proceedings: if proceedings_issue := self.stream.submission.proceedings:
return "{journal}/{year}/{conference}".format( return "{journal}/{year}/{conference}".format(
journal=self.journal_abbrev, journal=self.journal_abbrev,
year=self.stream.submission.proceedings.event_end_date.year, year=proceedings_issue.event_end_date.year,
conference=proceedings_issue.event_suffix.replace(" ", ""), conference=proceedings_issue.event_suffix.replace(" ", ""),
) )
else: else:
......
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