Adding lowest_passing_grade() to CourseDescriptor

This commit is contained in:
John Jarvis
2012-11-26 16:29:45 -05:00
parent c341975b2a
commit 474f810b38

View File

@@ -149,6 +149,10 @@ class CourseDescriptor(SequenceDescriptor):
def grade_cutoffs(self):
return self._grading_policy['GRADE_CUTOFFS']
@property
def lowest_passing_grade(self):
return min(self._grading_policy['GRADE_CUTOFFS'].values())
@property
def tabs(self):
"""
@@ -292,7 +296,7 @@ class CourseDescriptor(SequenceDescriptor):
return False
except:
log.exception("Error parsing discussion_blackouts for course {0}".format(self.id))
return True
@property