From e1b2ce52c113adc439f543d099365a58ef032d8c Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 18 Sep 2025 21:57:54 +0100 Subject: [PATCH] Ignore PSL XXL, not a hack weekend --- check.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/check.py b/check.py index eb78380..dd9d236 100755 --- a/check.py +++ b/check.py @@ -15,6 +15,8 @@ SMTP_HOST = "4angle.com" URL = "https://osmcal.org/api/v2/events/?in=France" +SEEN_EVENT_IDS = {4064} + def send_mail(subject: str, body: str) -> None: """Send an e-mail.""" @@ -43,7 +45,10 @@ def check_for_paris_events() -> None: raise 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: