🐛 fix name error

This commit is contained in:
Karako 2023-08-21 20:53:04 +08:00
parent 1d7652e383
commit 695851fcc1
No known key found for this signature in database

View File

@ -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"]