master
Aevann1 2021-12-20 22:47:55 +02:00
parent 0c4c1266d4
commit d190ea4f53
2 changed files with 2 additions and 2 deletions

BIN
chart.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

View File

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