Verified Commit cebe0aa4 authored by Peter Stanko's avatar Peter Stanko
Browse files

Fixed path

parent 99a7a2f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ def send_zip(storage_submission: entities.Submission):


def send_selected_file(storage_submission: entities.Submission, path_query: str):
    path = storage_submission.base_dir / Path(path_query)
    path = storage_submission.path / Path(path_query)
    if not path.exists():
        raise errors.PortalAPIError(400, f"Requested path does not exist: {path}")
    log.debug(f"[SEND] Sending file for submission ({storage_submission.entity_id}): {path}")