master
Aevann1 2022-01-02 02:15:07 +02:00
parent c33506526e
commit b3fe4bebef
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ def cached_chart(days):
today_cutoff = calendar.timegm(midnight_this_morning)
if not days:
firstsignup = g.db.query(User.created_utc).filter(User.created_utc != 0).order_by(User.created_utc).one_or_none()[0] - 86400
firstsignup = g.db.query(User.created_utc).filter(User.created_utc != 0).order_by(User.created_utc).first()[0] - 86400
nowstamp = int(time.time())
days = int((nowstamp - firstsignup) / 86400)