Skip to content

Commit

Permalink
little off by one error; raised problems when user withdrew immediate…
Browse files Browse the repository at this point in the history
…ly after (or at same time as) consenting.
  • Loading branch information
pbugni committed Feb 27, 2024
1 parent 0ca86c5 commit c7048da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/models/qb_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ def attempt_update(user_id, research_study_id, invalidate_existing):
if qbt.at > withdrawal_date:
break
j += 1
if j > 1:
if j > 0:
# include visit in withdrawn for qb_status functionality
kwargs['qb_id'] = pending_qbts[j-1].qb_id
kwargs['qb_iteration'] = pending_qbts[j-1].qb_iteration
Expand Down

0 comments on commit c7048da

Please sign in to comment.