1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 13:59:02 +08:00

Fix: is_extra in map_extractor

This commit is contained in:
sui-feng-cb 2025-08-15 20:30:57 +08:00
parent 5610616008
commit 4e46d9c1ca

View File

@ -656,7 +656,7 @@ class ChapterTemplate:
if isinstance(name, str): if isinstance(name, str):
maps = [] maps = []
for map_id, data in DATA.items(): for map_id, data in DATA.items():
if not isinstance(map_id, int) or is_extra(data['chapter_name']): if not isinstance(map_id, int) or not isinstance(data, dict) or is_extra(data['chapter_name']):
continue continue
if not re.search(name, data['name']): if not re.search(name, data['name']):
continue continue
@ -682,7 +682,7 @@ class ChapterTemplate:
event_id = get_event_id(maps[0].map_id) event_id = get_event_id(maps[0].map_id)
new = [] new = []
for map_id, data in DATA.items(): for map_id, data in DATA.items():
if not isinstance(map_id, int) or is_extra(data['chapter_name']): if not isinstance(map_id, int) or not isinstance(data, dict) or is_extra(data['chapter_name']):
continue continue
if get_event_id(data['id']) == event_id: if get_event_id(data['id']) == event_id:
data = MapData(data, DATA_LOOP.get(map_id, None)) data = MapData(data, DATA_LOOP.get(map_id, None))