From 4bde0d8524e9c6d6354f803b69f5674debc0517e Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 5 Nov 2023 12:53:01 +0000 Subject: [PATCH] Remove code that was commented out --- agenda/__init__.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/agenda/__init__.py b/agenda/__init__.py index 37b8b3d..2dccc2e 100644 --- a/agenda/__init__.py +++ b/agenda/__init__.py @@ -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