From 3b797c738972b2c93587cb1cee14e9ee8a339aa4 Mon Sep 17 00:00:00 2001 From: eli fessler Date: Sun, 20 Nov 2022 06:27:04 -1000 Subject: [PATCH] allow skipping prefetch checks work with `-r` --- s3s.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/s3s.py b/s3s.py index d8c479a..61766d6 100755 --- a/s3s.py +++ b/s3s.py @@ -945,7 +945,7 @@ def fetch_and_upload_single_result(hash, noun, isblackout, istestrun): post_result(result, False, isblackout, istestrun) # not monitoring mode -def check_if_missing(which, isblackout, istestrun): +def check_if_missing(which, isblackout, istestrun, skipprefetch): '''Checks for unuploaded battles and uploads any that are found (-r flag).''' noun = utils.set_noun(which) @@ -978,7 +978,7 @@ def check_if_missing(which, isblackout, istestrun): # ! fetch from online # specific - check ALL possible battles; printout - to show tokens are being checked at program start - splatnet_ids = fetch_json(which, specific=True, numbers_only=True, printout=True) + splatnet_ids = fetch_json(which, specific=True, numbers_only=True, printout=True, skipprefetch=skipprefetch) # same as code in -i section below... for id in reversed(splatnet_ids): @@ -1475,7 +1475,7 @@ def main(): update_salmon_profile() if check_old: - check_if_missing(which, blackout, test_run) # monitoring mode hasn't begun yet + check_if_missing(which, blackout, test_run, skipprefetch) # monitoring mode hasn't begun yet print() if secs != -1: # monitoring mode