From 1b596f14032376219764a1cb16bebe577667c981 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Mon, 13 Feb 2017 17:43:18 -0500 Subject: [PATCH] Clean up the function signature a bit. --- xonstat/views/submission.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = [] -- 2.39.2