fix: remove unused template logic

This commit is contained in:
Travis Abendshien
2025-03-06 02:30:13 -08:00
parent 97136ee442
commit 4675bed373

View File

@@ -432,16 +432,14 @@ def _fill_template(
"""
key = template_key or table_key
value = table.get(table_key, "")
template_ = template
if isinstance(value, dict):
for v in value:
normalized_key: str = f"{key}[{str(v)}]"
template_.replace(f"{{{normalized_key}}}", f"{{{str(v)}}}")
template_ = _fill_template(template_, value, str(v), normalized_key)
template = _fill_template(template, value, str(v), normalized_key)
value = str(value)
return template_.replace(f"{{{key}}}", f"{value}")
return template.replace(f"{{{key}}}", f"{value}")
def exec_instructions(library: "Library", entry_id: int, results: list[Instruction]) -> None: