Skip to content

Commit

Permalink
fixup! Implementing updating a file from the multiselect view
Browse files Browse the repository at this point in the history
  • Loading branch information
madwort committed Jul 3, 2024
1 parent 0e71651 commit 6f4d5fb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions local_db/data_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,13 @@ def delete_file_from_request(
audit: AuditEvent,
):
with transaction.atomic():
# TODO: needs fixing when RETURNED lands
# # defense in depth
# request = self._find_metadata(request_id)
#
# assert (
# request.status == RequestStatus.PENDING
# or request.status == RequestFileType.RETURNED
# )
# defense in depth
request = self._find_metadata(request_id)

assert (
request.status == RequestStatus.PENDING
or request.status == RequestStatus.RETURNED
)

try:
request_file = RequestFileMetadata.objects.get(
Expand Down

0 comments on commit 6f4d5fb

Please sign in to comment.