Only show diff if not 0
This commit is contained in:
parent
51670ea193
commit
3cae0c6c10
4
wsgi.py
4
wsgi.py
@ -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>",
|
||||
]
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user