update: bump 'common' version to 0.1.21

This commit is contained in:
2026-08-14 14:10:45 +08:00
parent 87c2632909
commit c326df934e
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')):
driver.execute_script("window.stop();") driver.execute_script("window.stop();")
setup(driver, parameters) 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...') logger.info('Waiting for authentication...')
if (account := parameters['account']) and (password := parameters['password']): if (account := parameters['account']) and (password := parameters['password']):
@@ -181,7 +181,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')):
sleep(parameters['interval']) sleep(parameters['interval'])
file = Path(parameters['directory']).joinpath(filename) file = Path(parameters['directory']).joinpath(filename)
until(lambda _: file.exists(), watch=False) until(lambda _: file.exists())
p = ProductInfo(file) p = ProductInfo(file)
driver.close() driver.close()
driver.switch_to.window(driver.window_handles[0]) driver.switch_to.window(driver.window_handles[0])
BIN
View File
Binary file not shown.