Skip to content

Commit

Permalink
Due to change in keeping timeline info beyond withdrawal dates, must
Browse files Browse the repository at this point in the history
now check withdrawn status before sending notifications
  • Loading branch information
pbugni committed Mar 19, 2024
1 parent 7df1393 commit 5aa3a04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions portal/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ def update_patients(patient_list, update_cache, queue_messages):
update_users_QBT(user_id, research_study_id)
if queue_messages:
qbstatus = QB_Status(user, research_study_id, now)
if qbstatus.withdrawn_by(now):
# NEVER notify withdrawn patients
continue
qbd = qbstatus.current_qbd()
if qbd:
queue_outstanding_messages(
Expand Down

0 comments on commit 5aa3a04

Please sign in to comment.