mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-07 07:31: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.wins = int(wins)
|
||||||
self.loses = self.games - self.wins
|
self.loses = self.games - self.wins
|
||||||
self.rank = None
|
self.rank = None
|
||||||
|
self.lastGame = lastGame
|
||||||
|
|
||||||
# determine winratio #
|
# determine winratio #
|
||||||
if self.games == 0:
|
if self.games == 0:
|
||||||
|
|||||||
@@ -33,6 +33,8 @@
|
|||||||
Rating: <i>{{ player.rating }}</i> <br>
|
Rating: <i>{{ player.rating }}</i> <br>
|
||||||
{% if player.rank == 0 %}
|
{% if player.rank == 0 %}
|
||||||
<i><small>missing {{ 10 - player.games }} placement games</small></i>
|
<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 %}
|
{% else %}
|
||||||
Rank: {{ player.rank }}
|
Rank: {{ player.rank }}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
|
|||||||
Reference in New Issue
Block a user