From 2824bc6b98be833685db3c5fb814150a0dd9cd20 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 26 Dec 2023 23:20:31 +0000 Subject: [PATCH] Add going flag to events --- agenda/conference.py | 1 + agenda/types.py | 1 + 2 files changed, 2 insertions(+) diff --git a/agenda/conference.py b/agenda/conference.py index 5f8972f..da697fe 100644 --- a/agenda/conference.py +++ b/agenda/conference.py @@ -49,6 +49,7 @@ def get_list(filepath: str) -> list[Event]: end_date=conf.end, title=f"🎤 {conf.display_name}", url=conf.url, + going=conf.going, ) for conf in ( Conference(**conf) diff --git a/agenda/types.py b/agenda/types.py index b974b64..27b5b58 100644 --- a/agenda/types.py +++ b/agenda/types.py @@ -22,6 +22,7 @@ class Event: end_date: datetime.date | datetime.datetime | None = None title: str | None = None url: str | None = None + going: bool | None = None @property def as_datetime(self) -> datetime.datetime: