auto-schedule-pro-v2: support adding lessons for saturdays

This commit is contained in:
2026-01-27 21:43:04 +02:00
parent a54d91b4f3
commit 68ec7b3ab6
@@ -129,12 +129,11 @@ def lesson_pool_to_objs(pool):
def process_week(week): def process_week(week):
result = [] result = []
for weekday in ["Пн", "Вв", "Ср", "Чт", "Пт"]: for weekday in ["Пн", "Вв", "Ср", "Чт", "Пт", "Сб"]:
day_pool = day_to_lesson_pool(next(filter(lambda l: l['day'] == weekday, week))['pairs']) day_pool = day_to_lesson_pool(next(filter(lambda l: l['day'] == weekday, week))['pairs'])
result.append(lesson_pool_to_objs(day_pool)) result.append(lesson_pool_to_objs(day_pool))
result.append({}) result.append({})
result.append({})
return result return result