From d93939013cec5f0bc2e98d98102b7ee27370368b Mon Sep 17 00:00:00 2001 From: AIZAWA Hina Date: Sat, 3 Jun 2023 15:51:25 +0900 Subject: [PATCH] reduce "battle already uploaded" message & fix #111 (#126) --- s3s.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3s.py b/s3s.py index 03431b3..96b61cb 100755 --- a/s3s.py +++ b/s3s.py @@ -1416,7 +1416,7 @@ def check_if_missing(which, isblackout, istestrun, skipprefetch): # https://github.com/fetus-hina/stat.ink/wiki/Spl3-API:-Battle-%EF%BC%8D-Get-UUID-List-(for-s3s) # https://github.com/fetus-hina/stat.ink/wiki/Spl3-API:-Salmon-%EF%BC%8D-Get-UUID-List if which in ("both", "ink"): - urls.append("https://stat.ink/api/v3/s3s/uuid-list") # max 200 entries + urls.append("https://stat.ink/api/v3/s3s/uuid-list?lobby=adaptive") # max 200 entries else: urls.append(None) if which in ("both", "salmon"): @@ -1948,7 +1948,7 @@ def main(): # only upload unuploaded results auth = {'Authorization': f'Bearer {API_KEY}'} - resp_b = requests.get("https://stat.ink/api/v3/s3s/uuid-list", headers=auth) + resp_b = requests.get("https://stat.ink/api/v3/s3s/uuid-list?lobby=adaptive", headers=auth) resp_j = requests.get("https://stat.ink/api/v3/salmon/uuid-list", headers=auth) try: statink_uploads = json.loads(resp_b.text)