From 695851fcc1a740a92358ddd7c83dbd78d8775aaa Mon Sep 17 00:00:00 2001 From: Karako Date: Mon, 21 Aug 2023 20:53:04 +0800 Subject: [PATCH] :bug: fix name error --- scripts/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/item.py b/scripts/item.py index d4e3c16..07b95e2 100644 --- a/scripts/item.py +++ b/scripts/item.py @@ -25,7 +25,7 @@ async def parse_item_data( item_list = [] for data in filter(lambda x: "rankLevel" in x, json_data): id = data["id"] - if name := manager.get_text(data["nameTextMapHash"]) is None: + if (name := manager.get_text(data["nameTextMapHash"])) is None: continue type = manager.get_text(data["typeDescTextMapHash"]) icon = data["icon"]