Spaces:
Runtime error
Runtime error
Bug fix
Browse files- 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:
|