Juggling commited on
Commit
a2aebf8
·
verified ·
1 Parent(s): 0397c6d
Files changed (1) hide show
  1. workshops.py +1 -1
workshops.py CHANGED
@@ -290,7 +290,7 @@ def classify_schedules(people: list, schedules: list, partial_names: list, total
290
  if len(valid_schedules) > 0:
291
  continue
292
  #print(f"teaching desired number of timeslots: {everyone_is_teaching}. At least one workshop per slot: {filled_all_timeslots}.\n{sched}\n")
293
- if sched.num_timeslots_filled > overall_max:
294
  overall_max = sched.num_timeslots_filled
295
 
296
  if sched.num_timeslots_filled not in incomplete_schedules:
 
290
  if len(valid_schedules) > 0:
291
  continue
292
  #print(f"teaching desired number of timeslots: {everyone_is_teaching}. At least one workshop per slot: {filled_all_timeslots}.\n{sched}\n")
293
+ if sched.num_timeslots_filled > overall_max or sched.num_timeslots_filled == overall_max:
294
  overall_max = sched.num_timeslots_filled
295
 
296
  if sched.num_timeslots_filled not in incomplete_schedules: