fix: only mark applications as success when actually submitted
- HOWOGE: require confirmation message (erfolgreich/gesendet/danke) - Gewobag/Gesobau/WBM: mark as not implemented (page opened but not submitted)
This commit is contained in:
parent
7cf713d567
commit
4039fb64b7
1 changed files with 9 additions and 9 deletions
18
monitor.py
18
monitor.py
|
|
@ -562,9 +562,9 @@ class ApplicationHandler:
|
|||
result["message"] = "Application submitted successfully"
|
||||
logger.info("[HOWOGE] Success! Confirmation message detected")
|
||||
else:
|
||||
result["success"] = True
|
||||
result["message"] = "Form submitted, awaiting confirmation"
|
||||
logger.info("[HOWOGE] Form submitted but no clear confirmation")
|
||||
result["success"] = False
|
||||
result["message"] = "Form submitted but no confirmation detected"
|
||||
logger.warning("[HOWOGE] Form submitted but no clear confirmation")
|
||||
else:
|
||||
result["success"] = False
|
||||
result["message"] = "Form filled but no submit button found"
|
||||
|
|
@ -623,8 +623,8 @@ class ApplicationHandler:
|
|||
await page.screenshot(path=str(screenshot_path))
|
||||
logger.info(f"[GEWOBAG] Saved screenshot to {screenshot_path}")
|
||||
|
||||
result["success"] = True
|
||||
result["message"] = "Application page opened"
|
||||
result["success"] = False
|
||||
result["message"] = "Application page opened but not submitted (not implemented)"
|
||||
else:
|
||||
result["message"] = "No application button found"
|
||||
logger.warning("[GEWOBAG] Could not find application button")
|
||||
|
|
@ -887,8 +887,8 @@ class ApplicationHandler:
|
|||
await page.screenshot(path=str(screenshot_path))
|
||||
logger.info(f"[GESOBAU] Saved screenshot to {screenshot_path}")
|
||||
|
||||
result["success"] = True
|
||||
result["message"] = "Application page opened"
|
||||
result["success"] = False
|
||||
result["message"] = "Application page opened but not submitted (not implemented)"
|
||||
else:
|
||||
result["message"] = "No application button found"
|
||||
logger.warning("[GESOBAU] Could not find application button")
|
||||
|
|
@ -1133,8 +1133,8 @@ class ApplicationHandler:
|
|||
await page.screenshot(path=str(screenshot_path))
|
||||
logger.info(f"[WBM] Saved screenshot to {screenshot_path}")
|
||||
|
||||
result["success"] = True
|
||||
result["message"] = "Application page opened"
|
||||
result["success"] = False
|
||||
result["message"] = "Application page opened but not submitted (not implemented)"
|
||||
else:
|
||||
result["message"] = "No application button found"
|
||||
logger.warning("[WBM] Could not find application button")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue