1. Richard Lawrence
  2. schoolutils

Commits

Richard Lawrence  committed 6185ffa

* schoolutils/grading/validators.py: add '4points' to grade_type validator

  • Participants
  • Parent commits a46c492
  • Branches master

Comments (0)

Files changed (1)

File schoolutils/grading/validators.py

View file
     """Ensure s is a valid grade type.
 
        By default, converts s to lowercase and ensures it is one of
-       'letter', 'points', or 'percentage'.
+       'letter', '4points', 'points', or 'percentage'.
     """
     t = s.strip().lower()
-    if t not in ['letter', 'points', 'percentage']:
+    if t not in ['letter', '4points', 'points', 'percentage']:
         raise ValueError("Not a grade type: %s" % s)
 
     return t