-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Is your feature request related to a problem? Please describe.
I would like to be able to get the quiz details, like number of attempts, grades, status and all other details related to quizes.
Describe the solution you'd like
I can help with implementation of this feature
Describe alternatives you've considered
I haven't found any alternatives
I tried to adapt the moodle.post command for getting the attempts data and I am getting the following error:
moodle.exception.MoodleException: Error Code: Can't find data record in database table quiz_attempts.
Exception: dml_missing_record_exception
Message: invalidrecord
this is my implementation:
def get_attempt_data(self, attemptid:int,page: int, preflightdata : list):
data = self.moodle.post(
"mod_quiz_get_attempt_data",
attemptid=attemptid,
page=page,
preflightdata=preflightdata
)
return dataMetadata
Metadata
Assignees
Labels
No labels