Skip to content

Commit

Permalink
Add year of the GP to dashboard plot titles
Browse files Browse the repository at this point in the history
Might help reduce confusion when the plot is not loaded correctly at first
  • Loading branch information
Casper-Guo committed Sep 23, 2024
1 parent b149546 commit a4240dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a4240dd

Please sign in to comment.