From d8d86da309c5e43e4a7b84a6774b3e33467e237a Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 28 Feb 2023 22:23:58 +0100 Subject: [PATCH] Update TP1 gradation --- token-validator/grades.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/token-validator/grades.go b/token-validator/grades.go index 7aaecf4..a9342a2 100644 --- a/token-validator/grades.go +++ b/token-validator/grades.go @@ -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 } } }