refactor(server_routes): drop unused 'now' kwarg from _live_state render
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) <noreply@anthropic.com>
This commit is contained in:
parent
b6305f2aac
commit
55b2abfdc9
1 changed files with 0 additions and 1 deletions
|
|
@ -270,6 +270,5 @@ def live_state_fragment(server_id: int) -> Response:
|
||||||
snapshot_fresh=(latest is not None and latest.last_seen_at >= cutoff),
|
snapshot_fresh=(latest is not None and latest.last_seen_at >= cutoff),
|
||||||
current_players=current_rows,
|
current_players=current_rows,
|
||||||
recent_players=recent_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))),
|
poll_seconds=max(1, int(current_app.config.get("LIVE_STATE_POLL_SECONDS", 5))),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue