forked from rDrama/rDrama
sfdsdf
parent
dfb5e1ede9
commit
f07532311e
|
@ -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…
Reference in New Issue