Add API call to change results
parent
b87705fffc
commit
465668f282
|
@ -242,6 +242,17 @@ class CakeCMS:
|
|||
if value is False: value = 0
|
||||
return self.post('notes_entries/change', {'NotesEntry': {'student_id': student_id, 'note_id': note_id, 'value': value}}, course=course)
|
||||
|
||||
def testingresults_change(self, testing_id, student_id, points, course=None):
|
||||
"""
|
||||
Edit the points of a student.
|
||||
:param testing_id:
|
||||
:param student_id:
|
||||
:param points: int or float
|
||||
:param course:
|
||||
:return:
|
||||
"""
|
||||
return self.post('testingresults/change', {'Testingresult': {'student_id': student_id, 'testing_id': testing_id, 'points': points}}, course=course)
|
||||
|
||||
def materials_index(self, course=None):
|
||||
"""
|
||||
Get a list of all accessible material categories and files.
|
||||
|
|
Loading…
Reference in New Issue