Skip to content

[Feature Request ✨] Mod Quiz #22

@radu022003

Description

@radu022003

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 data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions