From 58364777fa7a2c48570f00cf22c7614ff6b78598 Mon Sep 17 00:00:00 2001 From: petrus comestor Date: Tue, 29 Oct 2024 18:43:51 -0400 Subject: auto --- generate-schedule.py | 5 +++-- index.html | 38 +++++++++++++++++++------------------- static/styles.css | 3 +++ 3 files changed, 25 insertions(+), 21 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 += '
\n' - s += f'''
+ s += f'''
{weekday}, {month} {day} · {time}
@@ -131,7 +132,7 @@ schedule = [ Event(jefferson, date(2024, 11, 6), info='Elevator in lobby to third floor. Book Swap and NYC Books Through Bars 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), diff --git a/index.html b/index.html index 2c50c0f..b0878ba 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@

-
+
Wednesday, October 30 · 6p
@@ -41,7 +41,7 @@ Greenwich Village
1st floor Willa Cather Room; take a left at entrance, straight through children’s room
-
+
Saturday, November 2 · 9a
@@ -50,7 +50,7 @@ Bushwick
-
+
Sunday, November 3 · 9p
@@ -60,7 +60,7 @@

-
+
Monday, November 4 · 6:30p
@@ -69,7 +69,7 @@ Williamsburg
Book Swap and NYC Books Through Bars Book Drive.
-
+
Wednesday, November 6 · 6p
@@ -78,7 +78,7 @@ Greenwich Village
Elevator in lobby to third floor. Book Swap and NYC Books Through Bars Book Drive.
-
+
Saturday, November 9 · 9a
@@ -88,7 +88,7 @@

-
+
Monday, November 11 · 6:30p
@@ -97,7 +97,7 @@ Williamsburg
-
+
Wednesday, November 13 · 6p
@@ -106,7 +106,7 @@ East Village
Wednesday Jefferson Market Library Quiet Reading moved for this week.
-
+
Thursday, November 14 · 6p
@@ -115,7 +115,7 @@ Bushwick
-
+
Saturday, November 16 · 9a
@@ -124,7 +124,7 @@ Bushwick
-
+
Saturday, November 16 · 12p
@@ -134,7 +134,7 @@
Hosted by Carroll Gardens Library

-
+
Monday, November 18 · 6:30p
@@ -143,7 +143,7 @@ Williamsburg
-
+
Wednesday, November 20 · 6p
@@ -152,7 +152,7 @@ Greenwich Village
1st floor Willa Cather Room; take a left at entrance, straight through children’s room
-
+
Wednesday, November 20 · 6:30p
@@ -161,7 +161,7 @@ Prospect Heights
Trustees Room
-
+
Thursday, November 21 · 6p
@@ -170,7 +170,7 @@ Bushwick
-
+
Saturday, November 23 · 9a
@@ -180,7 +180,7 @@

-
+
Monday, November 25 · 6:30p
@@ -189,7 +189,7 @@ Williamsburg
-
+
Wednesday, November 27 · 6p
@@ -198,7 +198,7 @@ Greenwich Village
Cancelled due to Thanksgiving.
-
+
Saturday, November 30 · 9a
diff --git a/static/styles.css b/static/styles.css index a524ed1..6733e70 100644 --- a/static/styles.css +++ b/static/styles.css @@ -222,3 +222,6 @@ hr { background: #fdd; } +.changed { + background: #fffbdd; +} -- cgit v1.2.3