Skip to content

Commit

Permalink
Merge branch 'comses:main' into 283-spam-detection-with-ollama-on-jet…
Browse files Browse the repository at this point in the history
…stream2
  • Loading branch information
asuworks authored Dec 9, 2024
2 parents 38877e4 + 565fdb7 commit 06fbb25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion django/deploy/cron.daily/doi_mint_pending_releases
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# Pros of before backups: backups will be more up-to-date
#
# currently syncing after backups
./manage.py doi_mint_pending_releases --no-interactive --no-dry-run
./manage.py doi_mint_pending_releases --no-interactive --no-dry-run
6 changes: 2 additions & 4 deletions django/library/doi.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,6 @@ def mint_pending_dois(self):
(release, log, "Unable to mint DOI for parent codebase")
)
continue
codebase.doi = codebase_doi
codebase.save()

"""
Mint DOI for release
Expand All @@ -569,15 +567,15 @@ def mint_pending_dois(self):
(release, log, "Unable to mint DOI for release")
)
continue
release.doi = log.doi
release.save()

logger.debug(
"Updating metadata for parent codebase of release %s", release.pk
)
"""
Update parent Codebase metadata for new release DOI
"""
codebase.refresh_from_db()
release.refresh_from_db()
log, ok = self.update_doi_metadata(codebase)
if not ok:
logger.error("Failed to update metadata for codebase %s", codebase.pk)
Expand Down

0 comments on commit 06fbb25

Please sign in to comment.