Don't schedule sessions on Sunday in schedule builder.

- Legacy-Id: 17899
This commit is contained in:
Sasha Romijn 2020-06-01 09:19:18 +00:00
parent 2f8dfe8c78
commit 38aaa38a0b

View file

@ -87,6 +87,7 @@ class ScheduleHandler(object):
).exclude(location__capacity=None).select_related('location')
timeslots = {TimeSlot(t, self.verbosity) for t in timeslots_db}
timeslots = {t for t in timeslots if t.day != 'sunday'}
for timeslot in timeslots:
timeslot.store_relations(timeslots)