Skip to content

Commit

Permalink
update cond
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Sep 7, 2024
1 parent 1dc514f commit 9fe522c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/neurolibre_celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ def preprint_build_pdf_draft(self, payload):
def preview_build_myst_task(self, screening_dict):
task = BaseNeuroLibreTask(self, screening_dict)
task.start("Started MyST build.")
task.screening.commit_hash = task.screening.commit_hash or format_commit_hash(task.screening.repository_url,"HEAD")
task.screening.commit_hash = format_commit_hash(task.screening.repository_url, "HEAD") if task.screening.commit_hash in [None, "latest"] else task.screening.commit_hash
task.screening.binder_hash = task.screening.binder_hash or task.screening.commit_hash

rees_resources = REES(dict(
Expand Down

0 comments on commit 9fe522c

Please sign in to comment.