Files
edx-platform/lms/djangoapps/grades/util_services.py
Feanil Patel 9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00

18 lines
466 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__()
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)