From a4240dd9761b3f0d55ce6aa239e03577b5ec4dae Mon Sep 17 00:00:00 2001 From: Casper Guo Date: Mon, 16 Sep 2024 14:54:22 -0400 Subject: [PATCH] Add year of the GP to dashboard plot titles Might help reduce confusion when the plot is not loaded correctly at first --- app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 7fb0d47..100b213 100644 --- a/app.py +++ b/app.py @@ -214,7 +214,11 @@ def get_session_metadata( Can assume that season, event, and session are all set (not None). """ - return get_session_info(season, event, session, teammate_comp=teammate_comp) + round_number, event_name, drivers = get_session_info( + season, event, session, teammate_comp=teammate_comp + ) + event_name = f"{season} {event_name}" + return round_number, event_name, drivers @callback(