From 1f499249666d92b9b53da83d4d3b4773c35839ca Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Sat, 11 Oct 2025 00:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B5=84=E6=BA=90=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unilabos/app/web/client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/unilabos/app/web/client.py b/unilabos/app/web/client.py index 62ed8808..d070e690 100644 --- a/unilabos/app/web/client.py +++ b/unilabos/app/web/client.py @@ -80,7 +80,7 @@ class HTTPClient: info(f"首次添加资源,当前远程地址: {self.remote_addr}") response = requests.post( f"{self.remote_addr}/edge/material", - json={"nodes": resources.dump()[0], "mount_uuid": mount_uuid}, + json={"nodes": [x for xs in resources.dump() for x in xs], "mount_uuid": mount_uuid}, headers={"Authorization": f"Lab {self.auth}"}, timeout=100, ) @@ -102,8 +102,6 @@ class HTTPClient: data = res["data"] for i in data: uuid_mapping[i["uuid"]] = i["cloud_uuid"] - if i["cloud_uuid"] == i["uuid"]: - print(i["cloud_uuid"], i["uuid"]) else: logger.error(f"添加物料失败: {response.text}") for u, n in old_uuids.items():