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>",
|
" </tr>",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
if total:
|
if total and (diff := total - df['Digitale Befragung'].sum()):
|
||||||
tfoot.extend([
|
tfoot.extend([
|
||||||
" <tr>",
|
" <tr>",
|
||||||
" <td>Weitere Bezirke</td>",
|
" <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.append(" <td></td>")
|
||||||
tfoot.extend(
|
tfoot.extend(
|
||||||
[
|
[
|
||||||
f" <td>{total - df['Digitale Befragung'].sum()}</td>",
|
f" <td>{diff}</td>",
|
||||||
" </tr>",
|
" </tr>",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user