forked from MarseyWorld/MarseyWorld
fds
parent
1ec4f1375d
commit
031d9c52e0
|
@ -123,15 +123,8 @@ def stats():
|
||||||
}
|
}
|
||||||
|
|
||||||
@app.get("/chart")
|
@app.get("/chart")
|
||||||
@auth_required
|
|
||||||
def chart(v):
|
def chart(v):
|
||||||
days = bool(request.values.get("days"))
|
return redirect('/weekly_chart')
|
||||||
file = cached_chart(days)
|
|
||||||
try: f = send_file(file)
|
|
||||||
except:
|
|
||||||
print('/chart', flush=True)
|
|
||||||
abort(404)
|
|
||||||
return f
|
|
||||||
|
|
||||||
|
|
||||||
@app.get("/weekly_chart")
|
@app.get("/weekly_chart")
|
||||||
|
|
Loading…
Reference in New Issue