Files
edx-platform/lms/djangoapps/grades/util_services.py
M. Zulqarnain 0213fde968 BOM-2281 : Pylint amnesty for grades,gating and instructor app (#26343)
* pyint amnesty for grades,gating and instructor app
2021-02-03 18:14:35 +05:00

18 lines
520 B
Python

"A light weight interface to grading helper functions"
from . import grade_utils
class GradesUtilService(object):
"""
An interface to be used by xblocks.
"""
def __init__(self, **kwargs):
super(GradesUtilService, self).__init__() # lint-amnesty, pylint: disable=super-with-arguments
self.course_id = kwargs.get('course_id', None)
def are_grades_frozen(self):
"Check if grades are frozen for given course key"
return grade_utils.are_grades_frozen(self.course_id)