-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Improve assessment attachment downloads (#5613)
- Loading branch information
1 parent
ba4c1bc
commit 393b052
Showing
3 changed files
with
28 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
13 changes: 6 additions & 7 deletions
13
pages/studentAssessmentInstanceFile/studentAssessmentInstanceFile.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
-- BLOCK select_file | ||
SELECT f.storage_filename | ||
FROM | ||
files AS f | ||
SELECT id, display_filename | ||
FROM files | ||
WHERE | ||
f.id = $file_id | ||
AND f.assessment_instance_id = $assessment_instance_id | ||
AND f.display_filename = $display_filename | ||
AND f.deleted_at IS NULL; | ||
id = $unsafe_file_id | ||
AND assessment_instance_id = $assessment_instance_id | ||
AND display_filename = $unsafe_display_filename | ||
AND deleted_at IS NULL; |