forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-12-15 23:42:05 +02:00
parent dfb5e1ede9
commit f07532311e
1 changed files with 2 additions and 1 deletions

View File

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