Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change update_score_and_comments to wrap args #602

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

breed
Copy link
Contributor

@breed breed commented Apr 4, 2023

when calling update_score_and_comments on a quiz submission, the attempt is already in self and there will be only one item in the update list.

Proposed Changes

  • this change wraps the passed arguments in a unary quiz_submissions list if quiz_submissions is not one of the parameters to the call.

  • legacy behavior is preserved if quiz_submissions is in the calling parameters.

Fixes #601

when calling update_score_and_comments on a quiz submission, the
attempt is already in self and there will be only one item in the
update list.

this change wraps the passed arguments in a unary quiz_submissions
list if quiz_submissions is not one of the parameters to the call.

legacy behavior is preserved if quiz_submissions is in the calling
parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QuizSubmission update_score_and_comments doesn't seem to work
2 participants