Operator can be missing

This commit is contained in:
Edward Betts 2024-01-01 18:08:30 +00:00
parent bfc368387b
commit f04216c367

View file

@ -16,7 +16,7 @@ def get_events(filepath: str) -> list[Event]:
title="🧳"
+ (
f'{item["location"]} Airbnb'
if item["operator"] == "airbnb"
if item.get("operator") == "airbnb"
else item["name"]
),
url=item.get("url"),