From 3c13c4f12deb4bcf8027361e8226e834c360b1e2 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 23 Dec 2012 12:43:26 -0500 Subject: [PATCH] Add a __repr__ to RecentGames for easy debugging. --- xonstat/views/helpers.py | 3 +++ 1 file changed, 3 insertions(+) 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): ''' -- 2.39.2