From d32504d048212b16dbe73c793335e483e2f13674 Mon Sep 17 00:00:00 2001 From: mateo Date: Wed, 10 Apr 2024 11:46:59 +0200 Subject: [PATCH] only today --- app/callbacks/data_callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/callbacks/data_callbacks.py b/app/callbacks/data_callbacks.py index 6a5021d..e14756f 100644 --- a/app/callbacks/data_callbacks.py +++ b/app/callbacks/data_callbacks.py @@ -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