master
Aevann1 2021-12-15 23:49:52 +02:00
parent 63b8cf01b5
commit 05b0bbb01f
1 changed files with 1 additions and 4 deletions

View File

@ -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]