lint: Format changes

This commit is contained in:
TrisNol 2023-11-02 16:26:13 +01:00
parent 534a9ca809
commit de689f164a

View File

@ -1,4 +1,5 @@
"""Unternehmensregister Scraping.""" """Unternehmensregister Scraping."""
# ruff: noqa: B023
import glob import glob
import multiprocessing import multiprocessing
import os import os
@ -105,7 +106,9 @@ def scrape(query: str, download_dir: list[str]) -> None:
driver.find_element(By.CLASS_NAME, "download-wrapper").click() driver.find_element(By.CLASS_NAME, "download-wrapper").click()
try: try:
wait.until(lambda: 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" file_name = "".join(e for e in company_name if e.isalnum()) + ".xml"
rename_latest_file( rename_latest_file(
download_path, download_path,