Update TP1 gradation
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
nemunaire 2023-02-28 22:23:58 +01:00
parent 9cd77a5152
commit d8d86da309

View File

@ -75,6 +75,8 @@ func computeGrades(_ httprouter.Params, _ []byte) (interface{}, error) {
}
} else {
switch st.Challenge {
case 0:
res[std.Login]["TP1"] += 1
case 1:
res[std.Login]["TP1"] += 3
case 2:
@ -97,6 +99,8 @@ func computeGrades(_ httprouter.Params, _ []byte) (interface{}, error) {
res[std.Login]["TP1"] += 2
case 11:
res[std.Login]["TP1"] += 1
case 12:
res[std.Login]["TP1"] += 1
}
}
}