From 089df1733d3fb07b906f67d95bcbb23abb978d4c Mon Sep 17 00:00:00 2001 From: Burathar Date: Fri, 10 Jul 2020 13:07:41 +0200 Subject: [PATCH] add computed columns --- app/templates/game_dashboard.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/templates/game_dashboard.html b/app/templates/game_dashboard.html index 44ed3b2..be9f05e 100644 --- a/app/templates/game_dashboard.html +++ b/app/templates/game_dashboard.html @@ -18,6 +18,7 @@ Role Objectives found Bunnies Caught + Been Caught Last location @@ -28,9 +29,10 @@ {% for gameplayer in player.player_games if gameplayer.game == game %} {{ gameplayer.role.name }} {% endfor %} - {{ "Placeholder" }} - {{ "Placeholder" }} - Placeholder + {{ player.found_objectives | selectattr('game', '==', game)|list|length}} + {{ player.caught_players | selectattr('game', '==', game)|list|length}} + {{ player.caught_by_players | selectattr('game', '==', game)|list|length}} + {{ player.last_location(game) }} {% endfor %} @@ -46,7 +48,7 @@ Objective Name Latitude Longitude - Amount of players that found it + Times found Hash @@ -57,7 +59,7 @@ {{ objective.name }} {{ objective.latitude }} {{ objective.longitude }} - Placeholder + {{ objective.found_by|length }} {{ objective.hash }}