From 42a9595966c2bd310c24b3299d9c231b3980c3cb Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Sat, 27 Jun 2026 14:21:55 -0700 Subject: [PATCH] allow archive season filtering on leaderboard --- config.py | 2 +- routes/leagues.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.py b/config.py index c0ca6b3..d4555e2 100644 --- a/config.py +++ b/config.py @@ -9,7 +9,7 @@ DATA_PATH = BASE_DIR / "data" / "entries.csv" DEFAULT_DATABASE_URL = f"sqlite:///{BASE_DIR / 'data' / 'boker-dev.sqlite3'}" ELIGIBLE_MIN_SESSIONS = 3 -APP_VERSION = "2.5.19" +APP_VERSION = "2.5.20" def load_local_env(env_path: Path) -> None: diff --git a/routes/leagues.py b/routes/leagues.py index 6432268..0a828fc 100644 --- a/routes/leagues.py +++ b/routes/leagues.py @@ -324,7 +324,7 @@ def leaderboard(league_ref: str): ordered_sessions = sorted(all_sessions, key=session_sort_key) # Season filter: restrict to sessions belonging to a specific season. - seasons = list_seasons_for_league(league.id) + seasons = list_seasons_for_league(league.id, include_archived=True) selected_season_id = request.args.get("season", "").strip() selected_season = None if selected_season_id: @@ -868,7 +868,7 @@ def sessions(league_ref: str): for sm in summaries if sm.session_id in ref_to_db_id } - seasons = list_seasons_for_league(league.id) + seasons = list_seasons_for_league(league.id, include_archived=True) season_map = {s.id: s for s in seasons} selected_season_id = request.args.get("season", "").strip() @@ -1078,7 +1078,7 @@ def session_detail(league_ref: str, session_id: str): summary = summaries[0] if summaries else empty_session_summary(session) all_rows = list_all_event_rows_for_session(league.id, session.id) - seasons = list_seasons_for_league(league.id) + seasons = list_seasons_for_league(league.id, include_archived=True) return render_template( "league_session_detail.html", league=league,