Skip to content

Commit

Permalink
Adds P+ grade to tilkryLAB1
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosk committed Jan 14, 2025
1 parent fce1e29 commit 2eadffd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/canvaslms/grades/tilkryLAB1.nw
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,14 @@ def is_optional(assignment):

If the assignment is mandatory, we'll add the grade to [[mandatory]].
If there is no grade or submission, we'll treat it as an F.

We also added a grade P+, for the fun of it, on one assignment.
We treat it as a normal P though.
<<handle mandatory>>=
if grade is None:
grade = "F"
elif grade == "P+":
grade = "P"
elif grade not in "PF":
logging.warning(f"Invalid grade {grade} for {user} in {assignment}, "
"using F")
Expand Down

0 comments on commit 2eadffd

Please sign in to comment.