fdsfsd
This commit is contained in:
parent
f4a0b84410
commit
2aa378ee1d
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,9 @@ def cached_chart(days):
|
|||
nowstamp = int(time.time())
|
||||
days = int((nowstamp - firstsignup) / 86400)
|
||||
|
||||
if days > 31: day_cutoffs = [today_cutoff - 86400 * 14 * i for i in range(31)]
|
||||
if days > 31:
|
||||
today_cutoff -= 86400
|
||||
day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(31)]
|
||||
else: day_cutoffs = [today_cutoff - 86400 * i for i in range(31)]
|
||||
|
||||
day_cutoffs.insert(0, calendar.timegm(now))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue