From: Ant Zucaro Date: Sun, 23 Dec 2012 17:43:26 +0000 (-0500) Subject: Add a __repr__ to RecentGames for easy debugging. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c13c4f12deb4bcf8027361e8226e834c360b1e2;p=xonotic%2Fxonstat.git Add a __repr__ to RecentGames for easy debugging. --- diff --git a/xonstat/views/helpers.py b/xonstat/views/helpers.py index 1affe0d..3e09e08 100644 --- a/xonstat/views/helpers.py +++ b/xonstat/views/helpers.py @@ -68,6 +68,9 @@ class RecentGame(object): "elo_delta": self.elo_delta, } + def __repr__(self): + return "" % (self.game_id, self.game_type_cd, self.server_name, self.map_name) + def recent_games_q(server_id=None, map_id=None, player_id=None, cutoff=None): '''