Skip to content

Commit

Permalink
fix night events rendering incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverarmor committed Jul 17, 2024
1 parent ef2dd86 commit 5ee3339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def boundary_checks(event):
if event['DTSTART'].dt.hour < 8 and event['DTEND'].dt.hour <= 8:
valid = False

# continue if event starts after 9pm and stops after 9pm
if event['DTSTART'].dt.hour >= 21 and event['DTEND'].dt.hour >= 21:
# continue if event starts after 9pm
if event['DTSTART'].dt.hour >= 21:
valid = False

# if event ends after the start date, set end to start date then set time to 9pm
Expand Down

0 comments on commit 5ee3339

Please sign in to comment.