Skip to content

Commit

Permalink
fix quiz scores query (#5004)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliknebel authored Aug 8, 2024
1 parent c23d837 commit a83d16d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/oli/grading.ex
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,13 @@ defmodule Oli.Grading do
join: rev in Revision,
on: rev.id == pr.revision_id,
left_join: ra in ResourceAccess,
on: ra.resource_id == rev.resource_id and ra.user_id == ^student_id,
on:
ra.section_id == ^section_id and ra.resource_id == sr.resource_id and
ra.user_id == ^student_id,
where:
sec.id == ^section_id and rev.deleted == false and
sec.id == ^section_id and
sr.section_id == ^section_id and
rev.deleted == false and
rev.resource_type_id == ^resource_type_id and
rev.graded == true,
select: %GradebookScore{
Expand Down

0 comments on commit a83d16d

Please sign in to comment.