From 28833cdee55c3881834961df3a987c32c71f635d Mon Sep 17 00:00:00 2001 From: Ayush Saini <36878972+imayushsaini@users.noreply.github.com> Date: Sun, 20 Mar 2022 18:38:16 +0530 Subject: [PATCH] fixed stats sorting : game stucking at scoreboard possibly coz of this . --- dist/ba_root/mods/stats/mystats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/ba_root/mods/stats/mystats.py b/dist/ba_root/mods/stats/mystats.py index f0f2feb..8fdda00 100644 --- a/dist/ba_root/mods/stats/mystats.py +++ b/dist/ba_root/mods/stats/mystats.py @@ -119,7 +119,7 @@ def refreshStats(): 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 - entries.sort(reverse=True) + entries.sort(key=lambda x:x[1] or 0,reverse=True) rank = 0 toppers = {} toppersIDs=[]