From e82b39d0b7a057a1849cbed3d566b108a4075f52 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Wed, 27 Apr 2022 14:05:28 -0700 Subject: [PATCH] continue step 6 --- test/scheduleGenerator/v3.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/scheduleGenerator/v3.py b/test/scheduleGenerator/v3.py index ca882d7..61aa0ac 100644 --- a/test/scheduleGenerator/v3.py +++ b/test/scheduleGenerator/v3.py @@ -331,10 +331,14 @@ def generateScheduleV3(students: list, courses: dict, blockClassLimit: int=40, s json.dump(students, outfile, indent=2) - # Step 6 - Evaluate, move classes or students to fix + # Step 6 - Evaluate, move students to fix for student in students: + blocksLen = [] for block in student["schedule"]: - pass + blocksLen.append(len(student["schedule"][block])) + # If there is a cross over... + if len(student["schedule"][block]) > 1: + pass return running