Skip to content

Commit

Permalink
improved heredicare upload and update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Aug 19, 2024
1 parent 4e11bf6 commit 7e23694
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ fabric.properties
.env
.env_localtest
.env_dev
.env_prod
src/frontend_celery/logs
/src/frontend_celery/webapp/static/files/
classified_structural_variants
Expand Down
10 changes: 7 additions & 3 deletions src/frontend_celery/webapp/utils/upload_status_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ def check_update_heredicare_status(variant_id, publish_queue_ids_oi: list, conn:
heredicare_queue_entries = conn.get_heredicare_queue_entries(publish_queue_ids_oi, variant_id)

# if an upload was successful update the respective needs_upload field
needs_heredicare_upload = False
for heredicare_queue_entry in heredicare_queue_entries:
if heredicare_queue_entry[1] in ["success"]:
consensus_classification_id = heredicare_queue_entry[8]
conn.update_consensus_classification_needs_heredicare_upload(consensus_classification_id)
if heredicare_queue_entry[1] in ["error"]:
needs_heredicare_upload = True

if not needs_heredicare_upload:
consensus_classification_id = heredicare_queue_entry[8]
conn.update_consensus_classification_needs_heredicare_upload(consensus_classification_id)

return heredicare_queue_entries

Expand Down

0 comments on commit 7e23694

Please sign in to comment.