Only show diff if not 0
This commit is contained in:
@@ -298,7 +298,7 @@ def _print_as_html(df: pd.DataFrame, output_str: list[str], total: int | None =
|
||||
" </tr>",
|
||||
]
|
||||
)
|
||||
if total:
|
||||
if total and (diff := total - df['Digitale Befragung'].sum()):
|
||||
tfoot.extend([
|
||||
" <tr>",
|
||||
" <td>Weitere Bezirke</td>",
|
||||
@@ -307,7 +307,7 @@ def _print_as_html(df: pd.DataFrame, output_str: list[str], total: int | None =
|
||||
tfoot.append(" <td></td>")
|
||||
tfoot.extend(
|
||||
[
|
||||
f" <td>{total - df['Digitale Befragung'].sum()}</td>",
|
||||
f" <td>{diff}</td>",
|
||||
" </tr>",
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user