From c82085dc0ef6d9b1fe876aeef643334d19517c23 Mon Sep 17 00:00:00 2001 From: Theouche Date: Tue, 23 Jul 2024 18:47:56 +0200 Subject: [PATCH] stat better --- pong/game/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pong/game/utils.py b/pong/game/utils.py index 4985d59..c02c194 100644 --- a/pong/game/utils.py +++ b/pong/game/utils.py @@ -95,6 +95,12 @@ def player_statistics(request, player_name): 'number of match played' : total_match 'number of win (matches)' : total_win 'pourcentage of victory' : p_win + 'mean score per match' : m_score_match + 'mean score adv per match' : m_score_adv_match + 'best score' : best_score + 'mean nbr ball touch' : m_nbr_ball_touch + 'total duration played' : total_duration + 'mean duration per match' : m_duration 'num_participated_tournaments': num_participated_tournaments, 'num_won_tournaments': num_won_tournaments }