From 103c29e234fc0e0cc88540915c5d31da57c24e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 12 May 2026 15:12:43 +0200 Subject: [PATCH] Fix missing values for first and last game in stats view --- games/views/general.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/games/views/general.py b/games/views/general.py index 3988cdd..470528b 100644 --- a/games/views/general.py +++ b/games/views/general.py @@ -196,6 +196,8 @@ def stats_alltime(request: HttpRequest) -> HttpResponse: first_play_date = "N/A" last_play_date = "N/A" + first_play_game = None + last_play_game = None if this_year_sessions: first_session = this_year_sessions.earliest() first_play_game = first_session.game