detect optional student grades

This commit is contained in:
SowinskiBraeden committed 2022-11-23 10:46:19 -08:00
1 parent f1ae86d7c4
commit 3b74a55a6f
1 file changed
+2 -1
+2 -1
View File
@@ -45,12 +45,13 @@ def getStudents(
"remainingAlts": [],
"studentIndex": len(students)
}
newStudent["gradelevel"] = row.get("Grade") if row.get("Grade") is not None else row.get("grade")
for i in range(1, totalBlocks+1): newStudent["schedule"][f'block{i}'] = []
students.append(newStudent)
# Estimate student grades
for student in students:
student["gradelevel"] = estimateStudentGrade(student)
if student["gradelevel"] is None: student["gradelevel"] = estimateStudentGrade(student)
if log:
with open(log_dir, "w") as outfile: