aktueller Graph endet am jeweiligen Tag

This commit is contained in:
hubobel 2026-06-24 15:55:08 +02:00
parent e5d8862ee7
commit 3724d971bd
2 changed files with 30 additions and 14 deletions

9
app.py
View file

@ -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")