mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-06 07:01:36 +01:00
correct message if player ist inactive
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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%}
|
||||
|
||||
Reference in New Issue
Block a user