Skip to content

Commit

Permalink
minor refactor typo; initialize variable only set on a match before t…
Browse files Browse the repository at this point in the history
…esting
  • Loading branch information
pbugni committed Mar 14, 2024
1 parent 85e635a commit 20490b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions portal/trigger_states/empro_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def users_trigger_state(user_id, as_of_date=None):
if as_of_date is None:
as_of_date = datetime.utcnow()

ts = None
rows = TriggerState.query.filter(
TriggerState.user_id == user_id).order_by(
TriggerState.timestamp.desc())
Expand Down

0 comments on commit 20490b7

Please sign in to comment.