fds
This commit is contained in:
parent
baa05ee48e
commit
3614e4a1bc
1 changed files with 2 additions and 2 deletions
|
@ -103,10 +103,10 @@ def cached_chart(days):
|
||||||
|
|
||||||
if days > 31:
|
if days > 31:
|
||||||
file = "/weekly_chart.png"
|
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:
|
else:
|
||||||
file = "/daily_chart.png"
|
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))
|
day_cutoffs.insert(0, calendar.timegm(now))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue