This commit is contained in:
Aevann1 2021-12-15 23:42:05 +02:00
parent 1245ac86b3
commit 4b42e23c4b

View file

@ -74,7 +74,8 @@ def participation_stats(v):
@app.get("/chart") @app.get("/chart")
@auth_required @auth_required
def chart(v): def chart(v):
days = request.values.get("days", 0) try: days = int(request.values.get("days", 0))
except: days = 0
file = cached_chart(days) file = cached_chart(days)
return send_file(file) return send_file(file)