Skip to content

Commit

Permalink
typo - TriggerState has timestamp column, not as_of_date
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugni committed Mar 18, 2024
1 parent 9b93ff8 commit 9d36f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/trigger_states/empro_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def initiate_trigger(user_id, as_of_date=None, rebuilding=False):
next_visit = int(ts.visit_month) + 1
current_app.logger.debug(f"transition from {ts} to next due")
# generate a new ts, to leave resolved record behind
ts = TriggerState(user_id=user_id, state='unstarted', as_of_date=as_of_date)
ts = TriggerState(user_id=user_id, state='unstarted', timestamp=as_of_date)
ts.visit_month = next_visit
current_app.logger.debug(
"persist-trigger_states-new from initiate_trigger(), "
Expand Down

0 comments on commit 9d36f9e

Please sign in to comment.