Skip to content

Commit 95799a8

Browse files
committed
lint
1 parent 94a7860 commit 95799a8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

itk_dev_shared_components/eflyt/eflyt_search.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,23 @@ def extract_cases(browser: webdriver.Chrome) -> list[Case]:
6666
for row in rows:
6767
deadline = None
6868
if "Deadline" in headlines:
69-
deadline_text = row.find_element(By.XPATH, f"td[{headlines.index("Deadline") + 1}]/a").text
69+
deadline_text = row.find_element(By.XPATH, f"td[{headlines.index('Deadline') + 1}]/a").text
7070
# Convert deadline to date object
7171
if len(deadline_text) > 0:
7272
deadline = datetime.strptime(deadline_text, "%d-%m-%Y")
7373

74-
case_number = row.find_element(By.XPATH, f"td[{headlines.index("Sagsnr.") + 1}]").text
75-
case_types_text = row.find_element(By.XPATH, f"td[{headlines.index("Flyttetype") + 1}]").text
74+
case_number = row.find_element(By.XPATH, f"td[{headlines.index('Sagsnr.') + 1}]").text
75+
case_types_text = row.find_element(By.XPATH, f"td[{headlines.index('Flyttetype') + 1}]").text
7676

7777
# If the case types ends with '...' we need to get the title instead
7878
if case_types_text.endswith("..."):
79-
case_types_text = row.find_element(By.XPATH, f"td[{headlines.index("Flyttetype") + 1}]").get_attribute("Title")
79+
case_types_text = row.find_element(By.XPATH, f"td[{headlines.index('Flyttetype') + 1}]").get_attribute("Title")
8080
case_types = case_types_text.split(", ")
8181

82-
status = row.find_element(By.XPATH, f"td[{headlines.index("Status") + 1}]").text
83-
cpr = row.find_element(By.XPATH, f"td[{headlines.index("CPR-nr.") + 1}]/a").text
84-
name = row.find_element(By.XPATH, f"td[{headlines.index("Navn") + 1}]").text
85-
case_worker = row.find_element(By.XPATH, f"td[{headlines.index("Sagsbehandler") + 2}]").text # eFlyt has an additional empty column before "Sagsbehandler"
82+
status = row.find_element(By.XPATH, f"td[{headlines.index('Status') + 1}]").text
83+
cpr = row.find_element(By.XPATH, f"td[{headlines.index('CPR-nr.') + 1}]/a").text
84+
name = row.find_element(By.XPATH, f"td[{headlines.index('Navn') + 1}]").text
85+
case_worker = row.find_element(By.XPATH, f"td[{headlines.index('Sagsbehandler') + 2}]").text # eFlyt has an additional empty column before "Sagsbehandler"
8686

8787
case = Case(case_number, deadline, case_types, status, cpr, name, case_worker)
8888
cases.append(case)

0 commit comments

Comments
 (0)