rework main and enabled Click
This commit is contained in:
parent
84674d8ae5
commit
ea9d02a03a
19
main.py
19
main.py
@ -132,9 +132,22 @@ def main():
|
|||||||
add_saturdays(events, YEAR, month, weeks)
|
add_saturdays(events, YEAR, month, weeks)
|
||||||
add_sundays(events, YEAR, month, weeks)
|
add_sundays(events, YEAR, month, weeks)
|
||||||
|
|
||||||
events = sort_events(events)
|
"""
|
||||||
write_calendar(events)
|
month = 1
|
||||||
|
for week_of_month, week in enumerate(MONTHS[month]):
|
||||||
|
print(week_of_month, week)
|
||||||
|
for day_of_week, day in enumerate(week):
|
||||||
|
if day > 0:
|
||||||
|
"""
|
||||||
|
month, week_of_month, day_of_week, day
|
||||||
|
use monthly_events[day_of_week]
|
||||||
|
"""
|
||||||
|
print(f" {day_of_week}-{day:02d}", end=" ")
|
||||||
|
day_events = [x[1:] for x in monthly_events[day_of_week] if week_of_month + 1 in x[0]]
|
||||||
|
print(day_events)
|
||||||
|
print()
|
||||||
|
# events = sort_events(events)
|
||||||
|
# write_calendar(events)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user