forked from rDrama/rDrama
fds
parent
21e6ee8d0e
commit
00bdd2d1c2
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue