diff --git a/wsgi.py b/wsgi.py index 85e4977..b3eba1b 100644 --- a/wsgi.py +++ b/wsgi.py @@ -298,7 +298,7 @@ def _print_as_html(df: pd.DataFrame, output_str: list[str], total: int | None = " ", ] ) - if total: + if total and (diff := total - df['Digitale Befragung'].sum()): tfoot.extend([ " ", " Weitere Bezirke", @@ -307,7 +307,7 @@ def _print_as_html(df: pd.DataFrame, output_str: list[str], total: int | None = tfoot.append(" ") tfoot.extend( [ - f" {total - df['Digitale Befragung'].sum()}", + f" {diff}", " ", ] )