]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Clean up the function signature a bit.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 13 Feb 2017 22:43:18 +0000 (17:43 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 13 Feb 2017 22:43:18 +0000 (17:43 -0500)
xonstat/views/submission.py

index bd688b9167219df24589448ce67db7a61f7e9e56..9c2cd9ca9dd18a55870cd980a90426312195ed3c 100644 (file)
@@ -974,7 +974,7 @@ def create_player(session, events):
     pass
 
 
-def get_or_create_players(session, game, gmap, events_by_hashkey):
+def get_or_create_players(session, events_by_hashkey):
     hashkeys = set(events_by_hashkey.keys())
     players_by_hashkey = {}
 
@@ -1056,6 +1056,7 @@ def submit_stats(request):
 
         events_by_hashkey = {elem["P"]: elem for elem in submission.humans + submission.bots}
         get_or_create_players(session, game, gmap, events_by_hashkey)
+
         # keep track of the players we've seen
         player_ids = []
         pgstats = []