From: Ant Zucaro Date: Mon, 25 Jan 2016 21:02:33 +0000 (-0500) Subject: Add a plus-sign link to the player_game_index. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=053ea4d8b9738f9c49bf615cb61fc0bd5ae736cf;p=xonotic%2Fxonstat.git Add a plus-sign link to the player_game_index. --- diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index f59bdc2..a0f0895 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -200,7 +200,7 @@ ##### ACCURACY CHART ####
-

Weapon Accuracy

+
Weapon Accuracy
@@ -213,7 +213,7 @@ ##### DAMAGE CHART ####
-

Weapon Damage

+
Weapon Damage
@@ -227,7 +227,7 @@ % if recent_games:
-

Recent Games

+
Recent Games
@@ -282,13 +282,6 @@ % endfor
- - % if total_games > 10: -

- More... -

- % endif -
% endif diff --git a/xonstat/views/player.py b/xonstat/views/player.py index 26da28f..faabcba 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -119,6 +119,7 @@ def get_games_played(player_id): # sort the resulting list by # of games played games_played = sorted(games_played, key=lambda x:x.games) games_played.reverse() + return games_played