From c326df934e49f0d6eb8494860f526c751851b8c7 Mon Sep 17 00:00:00 2001 From: Break27 Date: Fri, 14 Aug 2026 14:10:45 +0800 Subject: [PATCH] update: bump 'common' version to 0.1.21 --- main.py | 4 ++-- requirements.txt | Bin 922 -> 922 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7d02292..082513c 100644 --- a/main.py +++ b/main.py @@ -116,7 +116,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')): driver.execute_script("window.stop();") setup(driver, parameters) - until(lambda x: 'loginProgress' in x.find_element(By.TAG_NAME, "body").get_attribute('class'), watch=False) + until(lambda x: 'loginProgress' in x.find_element(By.TAG_NAME, "body").get_attribute('class')) logger.info('Waiting for authentication...') if (account := parameters['account']) and (password := parameters['password']): @@ -181,7 +181,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')): sleep(parameters['interval']) file = Path(parameters['directory']).joinpath(filename) - until(lambda _: file.exists(), watch=False) + until(lambda _: file.exists()) p = ProductInfo(file) driver.close() driver.switch_to.window(driver.window_handles[0]) diff --git a/requirements.txt b/requirements.txt index a33245d758d6d0be87f0606b449f7dfe927f6770..ebb797434c47c9005946a93aee764a975a2c72aa 100644 GIT binary patch delta 91 zcmbQmK8t