master
Aevann1 2021-12-15 23:58:20 +02:00
parent bb9f71b38e
commit 4da2a295ba
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def cached_chart(days):
nowstamp = int(time.time())
days = int((nowstamp - firstsignup) / 86400)
if days > 30: day_cutoffs = [today_cutoff - 86400*7 * i for i in range(days)]
if days > 30: day_cutoffs = [today_cutoff - 86400*7 * i for i in range(days/7)]
else: day_cutoffs = [today_cutoff - 86400 * i for i in range(days)]
day_cutoffs.insert(0, calendar.timegm(now))