fix degewo
This commit is contained in:
parent
4ea437e3e6
commit
0f2f842e04
3 changed files with 39 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue