Remove code that was commented out

This commit is contained in:
Edward Betts 2023-11-05 12:53:01 +00:00
parent ef45d9c508
commit 4bde0d8524

View file

@ -288,24 +288,14 @@ def get_accommodation(from_date: date, filepath: str) -> list[Event]:
)
from_date = item["from"]
to_date = item["to"]
# nights = (to_date.date() - from_date.date()).days
# night_str = f"{nights} nights" if nights != 1 else "1 night"
e = Event(
date=from_date,
end_date=to_date,
name="accommodation",
# title=f"check-in {title} ({night_str})",
title=title,
url=item.get("url"),
)
events.append(e)
# checkout = Event(
# date=to_date,
# name="accommodation",
# title="check-out " + title,
# url=item.get("url"),
# )
# events += [checkin, checkout]
return events