Apply black
This commit is contained in:
parent
8f0dbe9e7f
commit
fe7f4a3329
@ -114,7 +114,6 @@ def gv_additional_component_table(component):
|
||||
|
||||
rows = []
|
||||
for subitem in component.additional_components:
|
||||
|
||||
if subitem.explicit_qty:
|
||||
text_qty, unit_qty = subitem.qty_computed, "x"
|
||||
if subitem.amount_computed is not None:
|
||||
|
||||
@ -170,9 +170,9 @@ def generate_html_output(
|
||||
if isinstance(entry, Dict):
|
||||
replacements[f"<!-- %{item}_{index+1}% -->"] = str(category)
|
||||
for entry_key, entry_value in entry.items():
|
||||
replacements[f"<!-- %{item}_{index+1}_{entry_key}% -->"] = (
|
||||
html_line_breaks(str(entry_value))
|
||||
)
|
||||
replacements[
|
||||
f"<!-- %{item}_{index+1}_{entry_key}% -->"
|
||||
] = html_line_breaks(str(entry_value))
|
||||
elif isinstance(entry, (str, int, float)):
|
||||
pass # TODO?: replacements[f"<!-- %{item}_{category}% -->"] = html_line_breaks(str(entry))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user