mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-09-28 12:16:26 -05:00
fix coop_results.json (SR data) sorting when using -o (#28)
This commit is contained in:
2
s3s.py
2
s3s.py
@@ -275,7 +275,7 @@ def fetch_json(which, separate=False, exportall=False, specific=False, numbers_o
|
||||
except:
|
||||
print("(!) Exporting without sorting results.json")
|
||||
try:
|
||||
salmon_list = [x for x in salmon_list if x['data']['vsHistoryDetail'] != None]
|
||||
salmon_list = [x for x in salmon_list if x['data']['coopHistoryDetail'] != None]
|
||||
salmon_list = sorted(salmon_list, key=lambda d: d['data']['coopHistoryDetail']['playedTime'])
|
||||
except:
|
||||
print("(!) Exporting without sorting coop_results.json")
|
||||
|
||||
Reference in New Issue
Block a user