🐛 fix: parse wiki

This commit is contained in:
xtaodada 2023-08-09 13:19:39 +08:00
parent a064d3d08f
commit aebc0ae8a0
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 7 additions and 7 deletions

12
main.py
View File

@ -22,10 +22,10 @@ async def wiki(
main_data = await get_list()
if override_materials:
await fetch_materials(main_data[4])
await fetch_materials(main_data[5], "消耗品")
await fetch_materials(main_data[9], "任务道具")
await fetch_materials(main_data[10], "贵重物")
await fetch_materials(main_data[12])
await fetch_materials(main_data[5])
await fetch_materials(main_data[12], "消耗品")
await fetch_materials(main_data[10], "任务道具")
await fetch_materials(main_data[13], "贵重物")
await fetch_materials_infos()
await dump_materials(data_path / "materials.json")
else:
@ -42,13 +42,13 @@ async def wiki(
else:
await read_light_cones(data_path / "light_cones.json")
if override_monsters:
await fetch_monsters(main_data[2])
await fetch_monsters(main_data[3])
await fetch_monsters_infos()
await dump_monsters(data_path / "monsters.json")
else:
await read_monsters(data_path / "monsters.json")
if override_relics:
await fetch_relics(main_data[3])
await fetch_relics(main_data[2])
await fetch_relics_infos()
await dump_relics(data_path / "relics.json")
else:

View File

@ -72,7 +72,7 @@ async def get_all_avatars_skills_icons(avatars: List[YattaAvatar]):
local_path = ["basic_atk", "skill", "talent", "technique", "ultimate"]
tasks = []
for avatar in avatars:
if avatar.id in ["8002", "8004"]:
if avatar.id in [8002, 8004]:
continue
for i in range(len(remote_path)):
tasks.append(