diff --git a/player.py b/player.py index 6139a6c..95bc882 100644 --- a/player.py +++ b/player.py @@ -17,6 +17,7 @@ class PlayerInLeaderboard: self.wins = int(wins) self.loses = self.games - self.wins self.rank = None + self.lastGame = lastGame # determine winratio # if self.games == 0: diff --git a/templates/player.html b/templates/player.html index 68bdd7a..59266ea 100644 --- a/templates/player.html +++ b/templates/player.html @@ -33,6 +33,8 @@ Rating: {{ player.rating }}
{% if player.rank == 0 %} missing {{ 10 - player.games }} placement games + {% elif not player.lastGame %} + Hasn't played enought games recently {% else %} Rank: {{ player.rank }} {%endif%}