Skip to content

Commit

Permalink
only today
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Apr 10, 2024
1 parent 2fdf51f commit d32504d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/callbacks/data_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def api_watcher(n_intervals, local_events, local_alerts, user_headers, user_cred
dash.no_update,
]
else:
api_events = past_ndays_api_events(api_events, n_days=1) # keep only events from today
api_events = past_ndays_api_events(api_events, n_days=0) # keep only events from today
if api_events.empty:
return dash.no_update, dash.no_update, True
api_events = api_events[::-1] # Display the last alert first
Expand Down

0 comments on commit d32504d

Please sign in to comment.