From 610227457c2ea4511fd8498fa45a4eea0d958141 Mon Sep 17 00:00:00 2001 From: ske087 Date: Fri, 28 Nov 2025 15:12:36 +0200 Subject: [PATCH] Fix player status display on players list page --- app/templates/players/players_list.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/templates/players/players_list.html b/app/templates/players/players_list.html index 5a3d6a9..4f63d5d 100644 --- a/app/templates/players/players_list.html +++ b/app/templates/players/players_list.html @@ -162,16 +162,15 @@ {{ player.orientation or 'Landscape' }} - {% set status = player_statuses.get(player.id, {}) %} - {% if status.get('is_online') %} + {% if player.is_online %} Online {% else %} Offline {% endif %} - {% if player.last_heartbeat %} - {{ player.last_heartbeat.strftime('%Y-%m-%d %H:%M') }} + {% if player.last_seen %} + {{ player.last_seen.strftime('%Y-%m-%d %H:%M') }} {% else %} Never {% endif %}