diff --git a/scipost_django/production/management/commands/advance_git_repos.py b/scipost_django/production/management/commands/advance_git_repos.py index 42da5e38216fa7a2c9acaa03b417939795a4adf7..a9dad63fb3f26762c176d4c795a0637cf707f468 100644 --- a/scipost_django/production/management/commands/advance_git_repos.py +++ b/scipost_django/production/management/commands/advance_git_repos.py @@ -583,6 +583,12 @@ class Command(BaseCommand): status=ProofsRepository.PROOFS_REPO_TEMPLATE_ONLY ) 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: self._format_skeleton(repo) repo.status = ProofsRepository.PROOFS_REPO_TEMPLATE_FORMATTED @@ -604,6 +610,11 @@ class Command(BaseCommand): self._copy_arxiv_source_files(repo) repo.status = ProofsRepository.PROOFS_REPO_PRODUCTION_READY 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: self.stdout.write( self.style.ERROR( diff --git a/scipost_django/production/models.py b/scipost_django/production/models.py index 14c75506d3124c9c5c562d5a52ed7688d21eb879..522519e69859c1f3da8aa8cf8aa12405aaa2188e 100644 --- a/scipost_django/production/models.py +++ b/scipost_django/production/models.py @@ -372,7 +372,7 @@ class ProofsRepository(models.Model): if proceedings_issue := self.stream.submission.proceedings: return "{journal}/{year}/{conference}".format( 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(" ", ""), ) else: