Compare commits
No commits in common. "7c5c73d6497e275eb67554ca1527290340b7f525" and "26f9e98b03d25db3e1ecba01feca76855285ade2" have entirely different histories.
7c5c73d649
...
26f9e98b03
|
@ -343,14 +343,8 @@ def get_accommodation(from_date: date, filepath: str) -> list[Event]:
|
|||
date=from_date,
|
||||
name="accommodation",
|
||||
title=f"check-in {title} ({night_str})",
|
||||
url=item.get("url"),
|
||||
)
|
||||
checkout = Event(
|
||||
date=to_date,
|
||||
name="accommodation",
|
||||
title="check-out " + title,
|
||||
url=item.get("url"),
|
||||
)
|
||||
checkout = Event(date=to_date, name="accommodation", title="check-out " + title)
|
||||
events += [checkin, checkout]
|
||||
return events
|
||||
|
||||
|
@ -362,7 +356,6 @@ def get_travel(from_date: date, method: str, filepath: str) -> list[Event]:
|
|||
date=item["depart"].date(),
|
||||
name="transport",
|
||||
title=f'{method} from {item["from"]} to {item["to"]}',
|
||||
url=item.get("url"),
|
||||
)
|
||||
for item in yaml.safe_load(open(filepath))
|
||||
if item["depart"].date() >= from_date
|
||||
|
|
|
@ -11,4 +11,3 @@ class Event:
|
|||
name: str
|
||||
date: date
|
||||
title: str | None = None
|
||||
url: str | None = None
|
||||
|
|
|
@ -55,10 +55,8 @@
|
|||
{{event.date.strftime("%a, %d, %b %Y")}}
|
||||
</td>
|
||||
<td class="text-start {% if event.name in class_map %} {{ class_map[event.name]}}{% endif %}">
|
||||
{% if event.url %}<a href="{{ event.url }}">{% endif %}
|
||||
{{ event_labels.get(event.name) or event.name }}
|
||||
{%- if event.title -%}: {{ event.title }}{% endif %}
|
||||
{% if event.url %}</a>{% endif %}
|
||||
</td>
|
||||
<td class="text-end">
|
||||
{{ days(event.date) }}
|
||||
|
|
Loading…
Reference in a new issue