From 3724d971bd50208085a76fc252dbf77ae05a8fe1 Mon Sep 17 00:00:00 2001 From: hubobel Date: Wed, 24 Jun 2026 15:55:08 +0200 Subject: [PATCH] aktueller Graph endet am jeweiligen Tag --- app.py | 9 ++++++++- templates/index.html | 35 ++++++++++++++++++++++------------- 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/app.py b/app.py index 512d903..120e654 100644 --- a/app.py +++ b/app.py @@ -321,7 +321,13 @@ def index(): ) balance_history = get_balance_comparison() - print(balance_history) + #print(balance_history) + today = datetime.now() + + if today.day >= 15: + current_day = today.day - 14 + else: + current_day = today.day + 17 return render_template( "index.html", year=year, @@ -334,6 +340,7 @@ def index(): total_saldo=total_saldo, balance=balance, balance_color=balance_color, + current_day=current_day, balance_history=balance_history ) @app.route("/test-influx") diff --git a/templates/index.html b/templates/index.html index 55f2254..6ec00d5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -254,8 +254,10 @@ Hintergasse © 2026