detect optional student grades
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -45,12 +45,13 @@ def getStudents(
|
|||||||
"remainingAlts": [],
|
"remainingAlts": [],
|
||||||
"studentIndex": len(students)
|
"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}'] = []
|
for i in range(1, totalBlocks+1): newStudent["schedule"][f'block{i}'] = []
|
||||||
students.append(newStudent)
|
students.append(newStudent)
|
||||||
|
|
||||||
# Estimate student grades
|
# Estimate student grades
|
||||||
for student in students:
|
for student in students:
|
||||||
student["gradelevel"] = estimateStudentGrade(student)
|
if student["gradelevel"] is None: student["gradelevel"] = estimateStudentGrade(student)
|
||||||
|
|
||||||
if log:
|
if log:
|
||||||
with open(log_dir, "w") as outfile:
|
with open(log_dir, "w") as outfile:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ from app.util.errorCalculator import writeErrorsToCSV
|
|||||||
from app.util.validator import validateInputData
|
from app.util.validator import validateInputData
|
||||||
|
|
||||||
eel.init('template')
|
eel.init('template')
|
||||||
|
|
||||||
@eel.expose
|
@eel.expose
|
||||||
def start(
|
def start(
|
||||||
raw_file_data: str,
|
raw_file_data: str,
|
||||||
|
|||||||
Reference in new issue
Block a user