Skip to content

Commit

Permalink
last alert first (#109)
Browse files Browse the repository at this point in the history
* last alert first

* style
  • Loading branch information
MateoLostanlen authored Sep 28, 2023
1 parent c9523dc commit 6304d24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def update_live_alerts_data(

# Fetch last 10 unacknowledged events and associated alerts (up to 15 per event)
live_events = pd.DataFrame(call_api(api_client.get_unacknowledged_events, user_credentials)())[-10:]
live_events = live_events[::-1] # Display the last alert first

# If there is no event, we prevent the callback from updating anything
if len(live_events) == 0:
Expand Down

0 comments on commit 6304d24

Please sign in to comment.