def _get_min_grade_requirement(course_key):
 course = modulestore().get_course(course_key, depth=0)
 try:
  return [{'namespace': 'grade', 'name': 'grade', 'display_name': 'Minimum Grade', 'criteria': {'min_grade': course.minimum_grade_credit}}]
 except AttributeError:
  LOGGER.error('The course %s does not has minimum_grade_credit attribute', unicode(course.id))
 else:
  return []

def _get_min_grade_requirement ( course_key ) : course = modulestore ( ) . get_course ( course_key , depth = 0 ) try : return [ { 'namespace' : 'grade' , 'name' : 'grade' , 'display_name' : 'Minimum Grade' , 'criteria' : { 'min_grade' : course . minimum_grade_credit } } ] except AttributeError : LOGGER . error ( 'The course %s does not has minimum_grade_credit attribute' , unicode ( course . id ) ) else : return [ ]
get list of minimum_grade_credit requirement for the given course .