fix timezone

This commit is contained in:
Aron Petau 2026-01-04 11:26:43 +01:00
parent f761f7b7e8
commit 743508ca66
3 changed files with 34 additions and 8 deletions

View file

@ -292,8 +292,18 @@ class ApplicationHandler:
def has_applied(self, listing_id: str) -> bool:
"""Check if we've already applied to this listing."""
return listing_id in self.load_applications()
"""
Check if we've already applied to this listing.
Excludes baseline entries from first run (not auto-applied).
"""
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
def load_previous_listings(self) -> dict: