From cebe0aa42197450d60f9d7c8439e955a73aabe1c Mon Sep 17 00:00:00 2001
From: Peter Stanko <peter.stanko0@gmail.com>
Date: Sun, 19 Aug 2018 20:42:31 +0200
Subject: [PATCH] Fixed path

---
 portal/service/submissions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/portal/service/submissions.py b/portal/service/submissions.py
index 486fd5f..16f5de5 100644
--- a/portal/service/submissions.py
+++ b/portal/service/submissions.py
@@ -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}")
-- 
GitLab