forked from MarseyWorld/MarseyWorld
dfsfsd
parent
63b8cf01b5
commit
05b0bbb01f
|
@ -100,11 +100,8 @@ def cached_chart(days):
|
|||
print(firstsignup)
|
||||
nowstamp = int(time.time())
|
||||
days = int((nowstamp - firstsignup) / 86400)
|
||||
print(days)
|
||||
|
||||
day = 3600 * days
|
||||
|
||||
day_cutoffs = [today_cutoff - day * i for i in range(30)]
|
||||
day_cutoffs = [today_cutoff - 86400 * i for i in range(days)]
|
||||
day_cutoffs.insert(0, calendar.timegm(now))
|
||||
|
||||
daily_times = [time.strftime("%d/%m", time.gmtime(day_cutoffs[i + 1])) for i in range(len(day_cutoffs) - 1)][2:][::-1]
|
||||
|
|
Loading…
Reference in New Issue