Remove code that was commented out
This commit is contained in:
parent
ef45d9c508
commit
4bde0d8524
|
@ -288,24 +288,14 @@ def get_accommodation(from_date: date, filepath: str) -> list[Event]:
|
||||||
)
|
)
|
||||||
from_date = item["from"]
|
from_date = item["from"]
|
||||||
to_date = item["to"]
|
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(
|
e = Event(
|
||||||
date=from_date,
|
date=from_date,
|
||||||
end_date=to_date,
|
end_date=to_date,
|
||||||
name="accommodation",
|
name="accommodation",
|
||||||
# title=f"check-in {title} ({night_str})",
|
|
||||||
title=title,
|
title=title,
|
||||||
url=item.get("url"),
|
url=item.get("url"),
|
||||||
)
|
)
|
||||||
events.append(e)
|
events.append(e)
|
||||||
# checkout = Event(
|
|
||||||
# date=to_date,
|
|
||||||
# name="accommodation",
|
|
||||||
# title="check-out " + title,
|
|
||||||
# url=item.get("url"),
|
|
||||||
# )
|
|
||||||
# events += [checkin, checkout]
|
|
||||||
return events
|
return events
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue