mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 05:03:55 +02:00
fix(data-extraction): Resolve wait function issue using lambda
This commit is contained in:
@ -105,7 +105,7 @@ def scrape(query: str, download_dir: list[str]) -> None:
|
||||
driver.find_element(By.CLASS_NAME, "download-wrapper").click()
|
||||
|
||||
try:
|
||||
wait.until(wait_for_download_condition(download_path, num_files))
|
||||
wait.until(lambda: wait_for_download_condition(download_path, num_files))
|
||||
file_name = "".join(e for e in company_name if e.isalnum()) + ".xml"
|
||||
rename_latest_file(
|
||||
download_path,
|
||||
|
Reference in New Issue
Block a user