Don't schedule sessions on Sunday in schedule builder.
- Legacy-Id: 17899
This commit is contained in:
parent
2f8dfe8c78
commit
38aaa38a0b
|
@ -87,6 +87,7 @@ class ScheduleHandler(object):
|
||||||
).exclude(location__capacity=None).select_related('location')
|
).exclude(location__capacity=None).select_related('location')
|
||||||
|
|
||||||
timeslots = {TimeSlot(t, self.verbosity) for t in timeslots_db}
|
timeslots = {TimeSlot(t, self.verbosity) for t in timeslots_db}
|
||||||
|
timeslots = {t for t in timeslots if t.day != 'sunday'}
|
||||||
for timeslot in timeslots:
|
for timeslot in timeslots:
|
||||||
timeslot.store_relations(timeslots)
|
timeslot.store_relations(timeslots)
|
||||||
|
|
||||||
|
@ -522,7 +523,7 @@ class Session(object):
|
||||||
self.timeranges_unavailable_penalty * len(self.timeranges_unavailable),
|
self.timeranges_unavailable_penalty * len(self.timeranges_unavailable),
|
||||||
self.requested_duration.seconds * 100,
|
self.requested_duration.seconds * 100,
|
||||||
])
|
])
|
||||||
|
|
||||||
def update_complexity(self, other_sessions):
|
def update_complexity(self, other_sessions):
|
||||||
"""
|
"""
|
||||||
Update the complexity of this session, based on all other sessions.
|
Update the complexity of this session, based on all other sessions.
|
||||||
|
|
Loading…
Reference in a new issue