auto-schedule-pro-v2: support adding lessons for saturdays
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user