diff options
Diffstat (limited to 'generate-schedule.py')
-rwxr-xr-x | generate-schedule.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generate-schedule.py b/generate-schedule.py index 1541ca6..d35e33c 100755 --- a/generate-schedule.py +++ b/generate-schedule.py @@ -20,6 +20,7 @@ class Event: info: str = None special: bool = False cancelled: bool = False + changed: bool = False def render_schedule(events): s = '' @@ -41,7 +42,7 @@ def render_schedule(events): if week_change: s += '<br>\n' - s += f'''<div class="event {'special' if event.special else ''} {'cancelled' if event.cancelled else ''}"> + s += f'''<div class="event {'special' if event.special else ''} {'cancelled' if event.cancelled else ''} {'changed' if event.changed else ''}"> <div class="event-data"> <strong>{weekday}, {month} {day}</strong> · {time} </div> @@ -131,7 +132,7 @@ schedule = [ Event(jefferson, date(2024, 11, 6), info='Elevator in lobby to third floor. Book Swap and <a href="https://booksthroughbarsnyc.org/donate/donate-books/">NYC Books Through Bars</a> Book Drive.', special=True), Event(nook, date(2024, 11, 9)), Event(mccarren, date(2024, 11, 11)), - Event(abraco, date(2024, 11, 13), special=True, info='Wednesday Jefferson Market Library Quiet Reading moved for this week.'), + Event(abraco, date(2024, 11, 13), changed=True, info='Wednesday Jefferson Market Library Quiet Reading moved for this week.'), Event(bushwicklibrary, date(2024, 11, 14), time='6p', special=True), Event(nook, date(2024, 11, 16)), Event(wyckoffbondgarden, date(2024, 11, 16), time='12p', special=True), |