This commit is contained in:
Aevann1 2022-01-07 20:20:51 +02:00
parent baa05ee48e
commit 3614e4a1bc

View file

@ -103,10 +103,10 @@ def cached_chart(days):
if days > 31:
file = "/weekly_chart.png"
day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(35)][1:]
day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(30)][1:]
else:
file = "/daily_chart.png"
day_cutoffs = [today_cutoff - 86400 * i for i in range(35)][1:]
day_cutoffs = [today_cutoff - 86400 * i for i in range(30)][1:]
day_cutoffs.insert(0, calendar.timegm(now))