We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d45696 commit 4caf17cCopy full SHA for 4caf17c
src/webapp/routers/data.py
@@ -850,7 +850,6 @@ def download_url_inst_file(
850
FileTable.name == file_name,
851
FileTable.inst_id == str_to_uuid(inst_id),
852
FileTable.sst_generated,
853
- not FileTable.deleted,
854
)
855
856
@@ -868,6 +867,11 @@ def download_url_inst_file(
868
867
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
869
detail="File duplicates found.",
870
+ if query_result[0][0].deleted:
871
+ raise HTTPException(
872
+ status_code=status.HTTP_404_NOT_FOUND,
873
+ detail="File has been deleted.",
874
+ )
875
return storage_control.generate_download_signed_url(
876
get_external_bucket_name(inst_id), file_name
877
0 commit comments