From 62eccc2e750a55317beef4d19c20199c6689eb66 Mon Sep 17 00:00:00 2001 From: eli fessler Date: Sun, 25 Sep 2022 18:31:19 -1000 Subject: [PATCH] fix coop_results.json (SR data) sorting when using -o (#28) --- s3s.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3s.py b/s3s.py index 0c1fd09..f671ab2 100755 --- a/s3s.py +++ b/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")