-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assignment membership query to handle multiple rows per student/role
We store one membership role per assignment, course and role. The existing query used SQLA .one() while querying by just assignment and student which would raise one more that one role existed. Use .first instead and assert the existence of the membership object below. The existing assert on lti_v11_lis_result_sourcedid is there for the typechecker benefit but we also include that condition on the query
- Loading branch information
Showing
2 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters