work on step 6

This commit is contained in:
SowinskiBraeden committed 2022-04-28 13:06:42 -07:00
1 parent e82b39d0b7
commit dc4b28ae4c
2 files changed
+29 -10

No files matched your search

+1 -2
View File
@@ -51,7 +51,6 @@ def getSampleStudents(data_dir: str, log: bool = False) -> list[dict]:
"Description": row["Description"],
"alt": alternate
})
if row["CrsNo"] in ["XAT--12A-S", "XAT--12B-S"]: mockStudents[student["studentIndex"]]["expectedClasses"] -= 1
else:
newStudent = {
"Pupil #": row["Pupil #"],
@@ -76,9 +75,9 @@ def getSampleStudents(data_dir: str, log: bool = False) -> list[dict]:
"remainingAlts": [],
"studentIndex": len(mockStudents)
}
if row["CrsNo"] in ["XAT--12A-S", "XAT--12B-S"]: mockStudents[student["studentIndex"]]["expectedClasses"] -= 1
mockStudents.append(newStudent)
if row["CrsNo"] in ["XAT--12A-S", "XAT--12B-S"]: mockStudents[student["studentIndex"]]["expectedClasses"] -= 1
if log:
with open("./output/students.json", "w") as outfile:
json.dump(mockStudents, outfile, indent=2)