sdfdfs
This commit is contained in:
parent
23e955710f
commit
85054d63c0
1 changed files with 2 additions and 2 deletions
|
@ -104,10 +104,10 @@ def cached_chart(days):
|
||||||
days = int((nowstamp - firstsignup) / 86400)
|
days = int((nowstamp - firstsignup) / 86400)
|
||||||
|
|
||||||
if days > 31:
|
if days > 31:
|
||||||
file = "/weekly_chart.webp"
|
file = "/weekly_chart.png"
|
||||||
day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(31)][1:]
|
day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(31)][1:]
|
||||||
else:
|
else:
|
||||||
file = "/daily_chart.webp"
|
file = "/daily_chart.png"
|
||||||
day_cutoffs = [today_cutoff - 86400 * i for i in range(31)][1:]
|
day_cutoffs = [today_cutoff - 86400 * i for i in range(31)][1:]
|
||||||
|
|
||||||
day_cutoffs.insert(0, calendar.timegm(now))
|
day_cutoffs.insert(0, calendar.timegm(now))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue