From 3a6a6242aa8e95710236f171b17eda4f9909873d Mon Sep 17 00:00:00 2001 From: Saipo Date: Sun, 27 Apr 2025 17:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=83=8C=E5=8C=85bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index d8c134e..2b34fc1 100644 --- a/main.py +++ b/main.py @@ -148,10 +148,10 @@ class MyPlugin(Star): date = cur.fetchone() baglist = json.loads(date[0]) baglist_str = "" - if len(baglist) == 0: + if len(baglist["baglist"]) == 0: baglist_str = "背包空空如也" else: - for item in baglist: + for item in baglist["baglist"]: if get_tool_name(item["id"]) is None: cur.close() conn.close()