aktueller Graph endet am jeweiligen Tag
This commit is contained in:
parent
e5d8862ee7
commit
3724d971bd
2 changed files with 30 additions and 14 deletions
9
app.py
9
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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue