fix(scraper): navigate to correct names list URL for export [32788f42]

This commit is contained in:
2026-03-20 19:38:57 +00:00
parent 5dad99d8b3
commit 5294d73dc1

View File

@@ -317,8 +317,9 @@ async def generate_pdf(job_id: str, account_type: str):
if not login(driver, username, password):
raise HTTPException(status_code=401, detail="Login failed.")
reg_url = f"https://app.fotograf.de/config_children/view_registrations/{job_id}"
logger.info(f"Navigating to registrations page: {reg_url}")
# 1. Navigate to names list page (where the export button lives)
reg_url = f"https://app.fotograf.de/config_children/view_names_list/{job_id}"
logger.info(f"Navigating to names list (Personen): {reg_url}")
driver.get(reg_url)
wait = WebDriverWait(driver, 30)