Skip to content
Snippets Groups Projects
Verified Commit ee4aca42 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix get_next_relevant_day if there are no time periods yet

parent 79ea7297
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ class TimePeriod(ExtensibleModel):
if day is None:
day = timezone.now().date()
if time is not None and not prev:
if time is not None and cls.time_max and not prev:
if time > cls.time_max:
day += timedelta(days=1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment