Skip to content

Commit 38aaa38

Browse files
author
Sasha Romijn
committed
Don't schedule sessions on Sunday in schedule builder.
- Legacy-Id: 17899
1 parent 2f8dfe8 commit 38aaa38

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/meeting/management/commands/schedule_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def _load_meeting(self):
8787
).exclude(location__capacity=None).select_related('location')
8888

8989
timeslots = {TimeSlot(t, self.verbosity) for t in timeslots_db}
90+
timeslots = {t for t in timeslots if t.day != 'sunday'}
9091
for timeslot in timeslots:
9192
timeslot.store_relations(timeslots)
9293

@@ -522,7 +523,7 @@ def __init__(self, stdout, meeting, session_db, business_constraint_costs, verbo
522523
self.timeranges_unavailable_penalty * len(self.timeranges_unavailable),
523524
self.requested_duration.seconds * 100,
524525
])
525-
526+
526527
def update_complexity(self, other_sessions):
527528
"""
528529
Update the complexity of this session, based on all other sessions.

0 commit comments

Comments
 (0)