internal logic error

This commit is contained in:
Aron Petau 2026-01-04 22:51:46 +01:00
parent 044ef111ac
commit cc40121e46
2 changed files with 141 additions and 7 deletions

View file

@ -308,17 +308,17 @@ class ApplicationHandler:
def has_applied(self, listing_id: str) -> bool:
"""
Check if we've already applied to this listing.
Excludes baseline entries from first run (not auto-applied).
Check if we've successfully applied to this listing.
Only returns True if application was successful.
Failed applications can be retried.
"""
applications = self.load_applications()
if listing_id not in applications:
return False
app = applications[listing_id]
# If message contains "First run, not auto-applied", treat as not applied
if "First run, not auto-applied" in app.get("message", ""):
return False
return True
# Only skip if application was successful
# Failed applications (success=False) should be retried
return app.get("success", False)
def load_previous_listings(self) -> dict: