Skip to content

Commit

Permalink
fix: use ebd_name also for existing tables
Browse files Browse the repository at this point in the history
not only for missing/placeholders
  • Loading branch information
Konstantin committed Nov 7, 2024
1 parent a1c879f commit d78078e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ebd_toolchain/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def handle_known_error(error: Exception, ebd_key: str) -> None:
if "json" in export_types:
ebd_meta_data = EbdTableMetaData(
ebd_code=ebd_key,
ebd_name=f"{ebd_kapitel.subsection_title}",
ebd_name=ebd_kapitel.subsection_title,
chapter=ebd_kapitel.chapter_title, # type:ignore[arg-type]
# pylint:disable=line-too-long
section=f"{ebd_kapitel.chapter}.{ebd_kapitel.section}.{ebd_kapitel.subsection}: {ebd_kapitel.section_title}",
Expand All @@ -173,8 +173,7 @@ def handle_known_error(error: Exception, ebd_key: str) -> None:
converter = DocxTableConverter(
docx_tables,
ebd_key=ebd_key,
# pylint: disable=fixme
ebd_name=ebd_key, # todo: use real ebd_name, this is just a placeholder for now
ebd_name=ebd_kapitel.subsection_title,
chapter=ebd_kapitel.chapter_title, # type:ignore[arg-type]
# pylint:disable=line-too-long
section=f"{ebd_kapitel.chapter}.{ebd_kapitel.section}.{ebd_kapitel.subsection}: {ebd_kapitel.section_title}",
Expand Down

0 comments on commit d78078e

Please sign in to comment.