projects
/
xonotic
/
xonstat.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b445e
)
Clean up the function signature a bit.
author
Ant Zucaro <azucaro@gmail.com>
Mon, 13 Feb 2017 22:43:18 +0000
(17:43 -0500)
committer
Ant Zucaro <azucaro@gmail.com>
Mon, 13 Feb 2017 22:43:18 +0000
(17:43 -0500)
xonstat/views/submission.py
patch
|
blob
|
history
diff --git
a/xonstat/views/submission.py
b/xonstat/views/submission.py
index bd688b9167219df24589448ce67db7a61f7e9e56..9c2cd9ca9dd18a55870cd980a90426312195ed3c 100644
(file)
--- 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 = []