fix timezone
This commit is contained in:
parent
f761f7b7e8
commit
743508ca66
3 changed files with 34 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue