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