From 4039fb64b7dc0858ab6dd536e3630eea33f8caa1 Mon Sep 17 00:00:00 2001 From: Aron Date: Tue, 9 Dec 2025 12:13:42 +0100 Subject: [PATCH] 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) --- monitor.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/monitor.py b/monitor.py index 64d6a9f..e37f5fc 100644 --- a/monitor.py +++ b/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")