From 55b2abfdc9aef812b13007357a02fd9f307bf16b Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 16 May 2026 11:15:14 +0200 Subject: [PATCH] refactor(server_routes): drop unused 'now' kwarg from _live_state render MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the timeago migration, the live-state template no longer reads 'now' — it computes relative labels through the filter, which derives its own reference time. Co-Authored-By: Claude Opus 4.7 (1M context) --- l4d2web/l4d2web/routes/server_routes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/l4d2web/l4d2web/routes/server_routes.py b/l4d2web/l4d2web/routes/server_routes.py index f284815..f0152b5 100644 --- a/l4d2web/l4d2web/routes/server_routes.py +++ b/l4d2web/l4d2web/routes/server_routes.py @@ -270,6 +270,5 @@ def live_state_fragment(server_id: int) -> Response: snapshot_fresh=(latest is not None and latest.last_seen_at >= cutoff), current_players=current_rows, recent_players=recent_rows, - now=datetime.now(UTC).replace(tzinfo=None), poll_seconds=max(1, int(current_app.config.get("LIVE_STATE_POLL_SECONDS", 5))), )