fix conflict solutions

This commit is contained in:
SowinskiBraeden committed 2022-11-30 10:32:03 -08:00
1 parent c58d18ed64
commit 603431a8e9
2 files changed
+6 -4

No files matched your search

+3 -2
View File
@@ -24,7 +24,8 @@ def newConflict(
"Code": code,
"Conflict": description
}
logs[pupilNum] = [log] if not exists else logs[pupilNum].append(log)
if exists: logs[pupilNum].append(log)
else: logs[pupilNum] = [log]
return exists if conflictType == "Critical" else False
def insertConflictSolutions(
@@ -37,7 +38,7 @@ def insertConflictSolutions(
conflict["Missing"] = data
break
# V3 diffelogrs a lot by V1/2 as it does not focus on fitting the classes
# V3 differs a lot by V1/2 as it does not focus on fitting the classes
# into the time table first.
# It starts by trying to get all classes full and give all students a full class list.
# Then it starts to attempt to fit all classes into a timetable, making corretions along