sfdsdf
This commit is contained in:
parent
1245ac86b3
commit
4b42e23c4b
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue