fix degewo

This commit is contained in:
Aron Petau 2026-01-05 14:14:42 +01:00
parent 4ea437e3e6
commit 0f2f842e04
3 changed files with 39 additions and 0 deletions

View file

@ -147,6 +147,18 @@ class ApplicationHandler:
for listing in listings:
if self.has_applied(listing["id"]):
logger.debug(f"Skip (applied): {listing['address']}")
# Add to results so notify_new_listings can handle it
results[listing["id"]] = {
"listing_id": listing["id"],
"company": self._detect_company(listing.get("link", "")),
"link": listing.get("link", ""),
"timestamp": listing.get("timestamp", ""),
"success": True,
"message": "Already applied successfully",
"address": listing.get("address", ""),
"rooms": listing.get("rooms", ""),
"price": listing.get("price", ""),
}
continue
result = await self.apply(listing)
results[listing["id"]] = result