Ignore PSL XXL, not a hack weekend

This commit is contained in:
Edward Betts 2025-09-18 21:57:54 +01:00
parent dbb72495fe
commit e1b2ce52c1

View file

@ -15,6 +15,8 @@ SMTP_HOST = "4angle.com"
URL = "https://osmcal.org/api/v2/events/?in=France" URL = "https://osmcal.org/api/v2/events/?in=France"
SEEN_EVENT_IDS = {4064}
def send_mail(subject: str, body: str) -> None: def send_mail(subject: str, body: str) -> None:
"""Send an e-mail.""" """Send an e-mail."""
@ -43,7 +45,10 @@ def check_for_paris_events() -> None:
raise raise
paris_events = [ paris_events = [
event for event in events if "paris" in event["location"]["detailed"].lower() event
for event in events
if event["url"] != "https://osmcal.org/event/4064/"
and "paris" in event["location"]["detailed"].lower()
] ]
if not paris_events: if not paris_events: