Add API call to change results

master
Markus Bauer 2023-02-23 14:24:57 +01:00
parent b87705fffc
commit 465668f282
1 changed files with 11 additions and 0 deletions

View File

@ -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.