improve uploading
This commit is contained in:
@@ -54,7 +54,6 @@ class CaseSchema(ModelSchema):
|
||||
model_fields = ["id", "title"]
|
||||
|
||||
|
||||
@logger.catch()
|
||||
@router.post("/upload_dicom", auth=django_auth)
|
||||
def upload_dicom(request, files: List[UploadedFile] = File(...)):
|
||||
uploaded = []
|
||||
@@ -69,7 +68,6 @@ def upload_dicom(request, files: List[UploadedFile] = File(...)):
|
||||
|
||||
uploaded.append((file.name, ud.image_blake3_hash))
|
||||
except DuplicateDicom:
|
||||
print(ud.check_for_duplicates(ud.image_blake3_hash))
|
||||
duplicate.append((file.name, ud.image_blake3_hash))
|
||||
pass
|
||||
except InvalidDicomError:
|
||||
|
||||
Reference in New Issue
Block a user