1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-06-09 19:59:57 +02:00

🧹 page_info: Name structMap type columns a bit more consistently

This commit is contained in:
Mike Gerber 2023-11-23 16:07:28 +01:00
parent 3ec0f8c62a
commit b8980bbf25

View file

@ -329,7 +329,7 @@ def pages_to_dict(mets, raise_errors=True) -> List[Dict]:
for struct_div in struct_divs:
type_ = struct_div.attrib.get("TYPE")
assert type_
page_dict[f"structmap_LOGICAL_TYPE_{type_}"] = 1
page_dict[f"structMap-LOGICAL_TYPE_{type_}"] = 1
from pprint import pprint; pprint(page_dict); print()
result.append(page_dict)