Skip to content

Commit 2d647ba

Browse files
committed
Fix logic issue in validate_fetch
1 parent 3a70ceb commit 2d647ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

server/src/routes/validate_fetch.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ pub async fn validate_fetch(
4242
tasks t
4343
JOIN assignments a ON
4444
a.task_id = t.id
45+
JOIN results r ON
46+
r.assignment_id = a.id
4547
WHERE
4648
a.state = 'submitted'
49+
AND
50+
r.state = 'init'
4751
GROUP BY
4852
t.id
4953
HAVING

0 commit comments

Comments
 (0)