mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
fixed stats sorting : game stucking at scoreboard possibly coz of this .
This commit is contained in:
parent
1d181ecb5e
commit
28833cdee5
1 changed files with 1 additions and 1 deletions
2
dist/ba_root/mods/stats/mystats.py
vendored
2
dist/ba_root/mods/stats/mystats.py
vendored
|
|
@ -119,7 +119,7 @@ def refreshStats():
|
||||||
|
|
||||||
entries = [(a['scores'], a['kills'], a['deaths'], a['games'], a['name'], a['aid']) for a in pStats.values()]
|
entries = [(a['scores'], a['kills'], a['deaths'], a['games'], a['name'], a['aid']) for a in pStats.values()]
|
||||||
# this gives us a list of kills/names sorted high-to-low
|
# this gives us a list of kills/names sorted high-to-low
|
||||||
entries.sort(reverse=True)
|
entries.sort(key=lambda x:x[1] or 0,reverse=True)
|
||||||
rank = 0
|
rank = 0
|
||||||
toppers = {}
|
toppers = {}
|
||||||
toppersIDs=[]
|
toppersIDs=[]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue