Skip to content

Commit

Permalink
prospector
Browse files Browse the repository at this point in the history
  • Loading branch information
wbaccinelli committed Jul 6, 2023
1 parent 95ad326 commit a6f0fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scheduler/celery_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ def update_scheduled_task_db(user_id: int, task_uuid: str):

# if a notification has been triggered, it must be marked as completed
# (no further interactions needed)
if component.intervention_component_name in Notifications._value2member_map_:
values = [item.value for item in Notifications]
if component.intervention_component_name in values:
task_entry.completed = True

session.commit()
Expand Down

0 comments on commit a6f0fb6

Please sign in to comment.