Commit 474f810b by John Jarvis

Adding lowest_passing_grade() to CourseDescriptor

parent c341975b
...@@ -150,6 +150,10 @@ class CourseDescriptor(SequenceDescriptor): ...@@ -150,6 +150,10 @@ class CourseDescriptor(SequenceDescriptor):
return self._grading_policy['GRADE_CUTOFFS'] return self._grading_policy['GRADE_CUTOFFS']
@property @property
def lowest_passing_grade(self):
return min(self._grading_policy['GRADE_CUTOFFS'].values())
@property
def tabs(self): def tabs(self):
""" """
Return the tabs config, as a python object, or None if not specified. Return the tabs config, as a python object, or None if not specified.
...@@ -292,7 +296,7 @@ class CourseDescriptor(SequenceDescriptor): ...@@ -292,7 +296,7 @@ class CourseDescriptor(SequenceDescriptor):
return False return False
except: except:
log.exception("Error parsing discussion_blackouts for course {0}".format(self.id)) log.exception("Error parsing discussion_blackouts for course {0}".format(self.id))
return True return True
@property @property
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment