correct message if player ist inactive

This commit is contained in:
Yannik Schmidt
2020-09-28 06:12:36 +02:00
parent f1729675dc
commit c694938b4e
2 changed files with 3 additions and 0 deletions

View File

@@ -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:

View File

@@ -33,6 +33,8 @@
Rating: <i>{{ player.rating }}</i> <br>
{% if player.rank == 0 %}
<i><small>missing {{ 10 - player.games }} placement games</small></i>
{% elif not player.lastGame %}
<i><small>Hasn't played enought games recently</small></i>
{% else %}
Rank: {{ player.rank }}
{%endif%}