From: Ant Zucaro Date: Mon, 13 Feb 2017 22:43:18 +0000 (-0500) Subject: Clean up the function signature a bit. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1b596f14032376219764a1cb16bebe577667c981;p=xonotic%2Fxonstat.git Clean up the function signature a bit. --- diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index bd688b9..9c2cd9c 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -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 = []