Skip to content

Commit 09a1a8e

Browse files
committed
Do not include the no upload submission files
1 parent 78f83a4 commit 09a1a8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/Assignment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ public function getAssignmentsByCourse(Course $course,
492492
$user_ids = $course->enrolledUsers->pluck('id')->toArray();
493493
$need_to_grades = SubmissionFile::selectRaw('assignment_id, COUNT(*) as count')
494494
->whereNull('score')
495+
->where('type','<>','no upload')
495496
->whereNotNull('question_id')
496497
->whereIn('user_id', $user_ids)
497498
->groupBy('assignment_id')

0 commit comments

Comments
 (0)