fd
This commit is contained in:
parent
63897ae399
commit
c9cf60470a
1 changed files with 1 additions and 3 deletions
|
@ -55,9 +55,7 @@ def participation_stats(v):
|
||||||
|
|
||||||
@cache.memoize(timeout=86400)
|
@cache.memoize(timeout=86400)
|
||||||
def stats():
|
def stats():
|
||||||
now = int(time.time())
|
day = int(time.time()) - 86400
|
||||||
|
|
||||||
day = now - 86400
|
|
||||||
|
|
||||||
return {"marseys": g.db.query(Marsey.name).count(),
|
return {"marseys": g.db.query(Marsey.name).count(),
|
||||||
"users": g.db.query(User.id).count(),
|
"users": g.db.query(User.id).count(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue