Ignore PSL XXL, not a hack weekend
This commit is contained in:
parent
dbb72495fe
commit
e1b2ce52c1
7
check.py
7
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:
|
||||
|
|
Loading…
Reference in a new issue