mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: is_extra in map_extractor
This commit is contained in:
parent
5610616008
commit
4e46d9c1ca
@ -656,7 +656,7 @@ class ChapterTemplate:
|
||||
if isinstance(name, str):
|
||||
maps = []
|
||||
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
|
||||
if not re.search(name, data['name']):
|
||||
continue
|
||||
@ -682,7 +682,7 @@ class ChapterTemplate:
|
||||
event_id = get_event_id(maps[0].map_id)
|
||||
new = []
|
||||
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
|
||||
if get_event_id(data['id']) == event_id:
|
||||
data = MapData(data, DATA_LOOP.get(map_id, None))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user