You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/cadet/assessments/assessments.ex
+7-99Lines changed: 7 additions & 99 deletions
Original file line number
Diff line number
Diff line change
@@ -1242,118 +1242,26 @@ defmodule Cadet.Assessments do
1242
1242
defall_submissions_by_grader_for_index(
1243
1243
grader=%CourseRegistration{course_id: course_id},
1244
1244
group_only\\false,
1245
-
ungraded_only\\false
1245
+
_ungraded_only\\false
1246
1246
)do
1247
1247
show_all=notgroup_only
1248
1248
1249
-
group_where=
1250
-
ifshow_all,
1251
-
do: "",
1252
-
else:
1253
-
"where s.student_id in (select cr.id from course_registrations cr inner join groups g on cr.group_id = g.id where g.leader_id = $1) or s.student_id = $1"
1254
-
1255
1249
group_filter=
1256
1250
ifshow_all,
1257
1251
do: "",
1258
1252
else:
1259
1253
"AND s.student_id IN (SELECT cr.id FROM course_registrations AS cr INNER JOIN groups AS g ON cr.group_id = g.id WHERE g.leader_id = #{grader.id}) OR s.student_id = #{grader.id}"
0 commit comments