added mens meetings

This commit is contained in:
Fredrick W. Warren 2024-10-09 15:54:20 -06:00
parent 620ef6df2c
commit 065fbb3684

34
main.py
View File

@ -34,7 +34,7 @@ class Event():
event_description: str event_description: str
YEAR: int = 2023 YEAR: int = 2024
MONTHS: dict[int, list[list[int]]] MONTHS: dict[int, list[list[int]]]
MONTHS = dict(enumerate([calendar.monthcalendar(YEAR, month) for month in MONTHS = dict(enumerate([calendar.monthcalendar(YEAR, month) for month in
range(1, 13)], start=1)) range(1, 13)], start=1))
@ -234,6 +234,38 @@ def add_fridays(events: list[Event],
"""add Friday events to calendar""" """add Friday events to calendar"""
days = [day[4] for day in days if day[4]] days = [day[4] for day in days if day[4]]
add_event(events,
"For Men Only 6:30pm",
"Mens Meeting",
"Mens Bible Stude",
datetime(year, month, days[0], 18, 30, 00),
datetime(year, month, days[0], 19, 30, 00),
)
add_event(events,
"For Men Only 6:30pm",
"Mens Meeting",
"Mens Bible Stude",
datetime(year, month, days[1], 18, 30, 00),
datetime(year, month, days[1], 19, 30, 00),
)
add_event(events,
"For Men Only 6:30pm",
"Mens Meeting",
"Mens Bible Stude",
datetime(year, month, days[2], 18, 30, 00),
datetime(year, month, days[2], 19, 30, 00),
)
add_event(events,
"For Men Only 6:30pm",
"Mens Meeting",
"Mens Bible Stude",
datetime(year, month, days[3], 18, 30, 00),
datetime(year, month, days[3], 19, 30, 00),
)
if len(days) == 5: if len(days) == 5:
add_event(events, add_event(events,
"Family Movie Night 7:00pm", "Family Movie Night 7:00pm",