🐛 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 = [] item_list = []
for data in filter(lambda x: "rankLevel" in x, json_data): for data in filter(lambda x: "rankLevel" in x, json_data):
id = data["id"] id = data["id"]
if name := manager.get_text(data["nameTextMapHash"]) is None: if (name := manager.get_text(data["nameTextMapHash"])) is None:
continue continue
type = manager.get_text(data["typeDescTextMapHash"]) type = manager.get_text(data["typeDescTextMapHash"])
icon = data["icon"] icon = data["icon"]