Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrede committed Jun 17, 2024
1 parent d8a43a5 commit b5bb007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fedn/network/api/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def set_compute_package(self, file, helper_type: str, name: str = None, descript
file_name = file.filename
storage_file_name = secure_filename(f"{str(uuid.uuid4())}.{extension}")

file_path = os.path.join("/app/client/package/", storage_file_name)
file_path = safe_join("/app/client/package/", storage_file_name)
file.save(file_path)

self.control.set_compute_package(storage_file_name, file_path)
Expand Down Expand Up @@ -399,7 +399,7 @@ def _create_checksum(self, name=None):
name, message = self._get_compute_package_name()
if name is None:
return False, message, ""
file_path = os.path.join("/app/client/package/", name) # TODO: make configurable, perhaps in config.py or package.py
file_path = safe_join("/app/client/package/", name) # TODO: make configurable, perhaps in config.py or package.py
try:
sum = str(sha(file_path))
except FileNotFoundError:
Expand Down

0 comments on commit b5bb007

Please sign in to comment.