Skip to content

QuizSubmission update_score_and_comments doesn't seem to work #601

@breed

Description

@breed

Describe the bug

when i call update_score_and_comments(fudge_points=points) on a quiz submission, i get the error "missing required key :quiz_submissions" back. looking through the code it doesn't seem like the data being sent to the canvas server matches the required format: https://canvas.instructure.com/doc/api/quiz_submissions.html#method.quizzes/quiz_submissions_api.update

To Reproduce

     for s in quiz.get_submissions():
         s.update_score_and_comments(fudge_points=9)

Expected behavior

the fudge_points get set to 9

Environment information

  • Python version (python --version) Python 3.10.6
  • CanvasAPI version (pip show canvasapi) Name: canvasapi Version: 3.0.0

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions