Skip to content

Commit

Permalink
improved clinvar upload handling
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Aug 19, 2024
1 parent 7e23694 commit 1ab92af
Showing 1 changed file with 7 additions and 3 deletions.
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 @@ -39,10 +39,14 @@ def check_update_clinvar_status(variant_id, publish_queue_ids_oi: list, conn: Co
clinvar_queue_entries = conn.get_clinvar_queue_entries(publish_queue_ids_oi, variant_id)

# update the respective needs_upload field if a submission chaged to success
needs_clinvar_upload = False
for clinvar_queue_entry in clinvar_queue_entries:
if clinvar_queue_entry[3] in ["success", "processed"]:
consensus_classification_id = clinvar_queue_entry[9]
conn.update_consensus_classification_needs_clinvar_upload(consensus_classification_id)
if clinvar_queue_entry[3] in ["error"]: #["success", "processed"]:
needs_clinvar_upload = True

if not needs_clinvar_upload:
consensus_classification_id = clinvar_queue_entry[9]
conn.update_consensus_classification_needs_clinvar_upload(consensus_classification_id)

return clinvar_queue_entries

Expand Down

0 comments on commit 1ab92af

Please sign in to comment.