From 9b6031a2f5b76347dab7fa0ded96c89f465e54bc Mon Sep 17 00:00:00 2001 From: eli fessler Date: Wed, 28 Sep 2022 00:14:33 -1000 Subject: [PATCH] tweak squid swim progress animation --- s3s.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/s3s.py b/s3s.py index a9c2c16..677947a 100755 --- a/s3s.py +++ b/s3s.py @@ -173,6 +173,8 @@ def gen_new_tokens(reason, force=False): def fetch_json(which, separate=False, exportall=False, specific=False, numbers_only=False, printout=False, skipprefetch=False): '''Returns results JSON from SplatNet 3, including a combined dict for ink battles + SR jobs if requested.''' + swim = SquidProgress() + if DEBUG: print(f"* fetch_json() called with which={which}, separate={separate}, " \ f"exportall={exportall}, specific={specific}, numbers_only={numbers_only}") @@ -185,6 +187,7 @@ def fetch_json(which, separate=False, exportall=False, specific=False, numbers_o prefetch_checks(printout) if DEBUG: print("* prefetch_checks() succeeded") + swim() ink_list, salmon_list = [], [] parent_files = [] @@ -209,10 +212,8 @@ def fetch_json(which, separate=False, exportall=False, specific=False, numbers_o queries.append(None) needs_sorted = False # https://ygdp.yale.edu/phenomena/needs-washed :D - swim = SquidProgress() for sha in queries: - swim() if sha != None: if DEBUG: print(f"* making query1 to {sha}")