From 68238faeec47e578452a5016ce3c9e9e19b147a2 Mon Sep 17 00:00:00 2001 From: Fredrik Wrede Date: Mon, 16 Dec 2024 13:52:11 +0000 Subject: [PATCH] fix --- fedn/network/api/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fedn/network/api/client.py b/fedn/network/api/client.py index 344ae6453..a92a3a86c 100644 --- a/fedn/network/api/client.py +++ b/fedn/network/api/client.py @@ -430,7 +430,7 @@ def download_package(self, path: str): else: return {"success": False, "message": "Failed to download package."} - def set_active_package(self, path: str, helper: str, name: str = None, description: str = None): + def set_active_package(self, path: str, helper: str, name: str = "", description: str = ""): """Set the compute package in the statestore. :param path: The file path of the compute package to set. @@ -442,7 +442,7 @@ def set_active_package(self, path: str, helper: str, name: str = None, descripti """ with open(path, "rb") as file: response = requests.post( - self._get_url("set_package"), + self._get_url_api_v1("packages"), files={"file": file}, data={"helper": helper, "name": name, "description": description}, verify=self.verify,