From 95100dbd8df3b4aad9d6dead16ff4cfd623e3a94 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 6 Mar 2026 23:37:25 -0500 Subject: [PATCH] fix(atcoder): remove post-upload settle delay before submit --- scrapers/atcoder.py | 2 -- scrapers/timeouts.py | 1 - 2 files changed, 3 deletions(-) diff --git a/scrapers/atcoder.py b/scrapers/atcoder.py index 8645beb..a9876cf 100644 --- a/scrapers/atcoder.py +++ b/scrapers/atcoder.py @@ -30,7 +30,6 @@ from .timeouts import ( BROWSER_ELEMENT_WAIT, BROWSER_NAV_TIMEOUT, BROWSER_SESSION_TIMEOUT, - BROWSER_SETTLE_DELAY, BROWSER_SUBMIT_NAV_TIMEOUT, BROWSER_TURNSTILE_POLL, HTTP_TIMEOUT, @@ -500,7 +499,6 @@ def _submit_headless( "buffer": Path(file_path).read_bytes(), }, ) - page.wait_for_timeout(BROWSER_SETTLE_DELAY) page.locator('button[type="submit"]').click(no_wait_after=True) page.wait_for_url( lambda url: "/submissions/me" in url, diff --git a/scrapers/timeouts.py b/scrapers/timeouts.py index e4ff583..4148d4a 100644 --- a/scrapers/timeouts.py +++ b/scrapers/timeouts.py @@ -11,4 +11,3 @@ BROWSER_SUBMIT_NAV_TIMEOUT["atcoder"] = BROWSER_NAV_TIMEOUT * 2 BROWSER_SUBMIT_NAV_TIMEOUT["codeforces"] = BROWSER_NAV_TIMEOUT * 2 BROWSER_TURNSTILE_POLL = 5000 BROWSER_ELEMENT_WAIT = 10000 -BROWSER_SETTLE_DELAY = 500