diff --git a/app/util/students.py b/app/util/students.py index 77fe53d..1056af0 100644 --- a/app/util/students.py +++ b/app/util/students.py @@ -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: diff --git a/main.py b/main.py index 00dcef1..360a8ee 100755 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ from app.util.errorCalculator import writeErrorsToCSV from app.util.validator import validateInputData eel.init('template') - + @eel.expose def start( raw_file_data: str,