Skip to content

Commit

Permalink
correct logic on delay
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugni committed Apr 22, 2024
1 parent 1055405 commit 3b23d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portal/trigger_states/empro_states.py
Expand Up @@ -278,9 +278,9 @@ def delay_processing(ts):
now = datetime.utcnow()
current_app.logger.debug(f"QQQ{ts.user_id} row timestamp: {ts.timestamp} now: {now}")
filed_n_delay = ts.timestamp + timedelta(seconds=OPT_OUT_DELAY)
current_app.logger.debug(f"QQQ{ts.user_id} {filed_n_delay} < {now} : {filed_n_delay < now}")
current_app.logger.debug(f"QQQ{ts.user_id} {filed_n_delay} > {now} : {filed_n_delay < now}")
current_app.logger.debug(f"QQQ{ts.user_id} {filed_n_delay.tzinfo}")
if filed_n_delay < now:
if filed_n_delay > now:
current_app.logger.debug(f"QQQ{ts.user_id} return True from delay_processing")
return True
current_app.logger.debug(f"QQQ{ts.user_id} return None from delay_processing")
Expand Down

0 comments on commit 3b23d46

Please sign in to comment.