Commit 86791d58 authored by fred's avatar fred

sort schedules to make Sunday->Monday night programming is at the right place

parent 7653751c
......@@ -142,6 +142,8 @@ def period_program(
current_date += timedelta(days=1)
program.sort(key=lambda x: x.datetime)
absences = {}
for absence in Absence.objects.filter(datetime__range=(date_start, date_end)):
absences[absence.datetime] = True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment