]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Fixed two minor issues (debug output, recent_games field)
authorJan D. Behrens <zykure@web.de>
Mon, 24 Sep 2012 18:49:00 +0000 (20:49 +0200)
committerJan D. Behrens <zykure@web.de>
Mon, 24 Sep 2012 18:49:53 +0000 (20:49 +0200)
xonstat/util.py
xonstat/views/player.py

index 72270f3cfd4e6279c0fe8235efb250c88fe7c592..af8809c1366601b4ef318aa9e2548b02b3fee915 100644 (file)
@@ -176,7 +176,6 @@ def to_json(data):
         elif type(value) == timedelta:
             result[key] = datetime_seconds(value)
         else:
-            print key,value
             result[key] = to_json(value.to_dict())
     return result
 
index 805b8634fe652fe547a0ebea4ebb033591aa6e6d..36ca55dd1f588ffc0b258dc3ea3be6e7f6c381a3 100644 (file)
@@ -579,7 +579,7 @@ def player_info_json(request):
     for game in player_info['recent_games']:
         recent_games.append(to_json(game))
     
-    recent_weapons = player_info['recent_weapons']
+    #recent_weapons = player_info['recent_weapons']
     
     return [{
         'player':           player,
@@ -589,7 +589,8 @@ def player_info_json(request):
         'elos':             elos,
         'ranks':            ranks,
         'recent_games':     recent_games,
-        'recent_weapons':   recent_weapons,
+    #    'recent_weapons':   recent_weapons,
+        'recent_weapons':   ['not implemented'],
     }]
     #return [{'status':'not implemented'}]