canvasapi icon indicating copy to clipboard operation
canvasapi copied to clipboard

QuizSubmission update_score_and_comments doesn't seem to work

Open breed opened this issue 1 year ago • 3 comments

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.

breed avatar Apr 04 '23 06:04 breed