fix(scraper): navigate to correct names list URL for export [32788f42]
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user