forked from MarseyWorld/MarseyWorld
fix missing loggedin_counter and loggedout_counter
parent
e6a328fc3a
commit
14828bd9f4
|
@ -14,7 +14,10 @@ from files.__main__ import app, cache, db_session, limiter
|
||||||
|
|
||||||
|
|
||||||
def calc_users(v):
|
def calc_users(v):
|
||||||
if not g.is_api_or_xhr: return
|
if g.is_api_or_xhr:
|
||||||
|
g.loggedin_counter = 0
|
||||||
|
g.loggedout_counter = 0
|
||||||
|
return ''
|
||||||
loggedin = cache.get(f'{SITE}_loggedin') or {}
|
loggedin = cache.get(f'{SITE}_loggedin') or {}
|
||||||
loggedout = cache.get(f'{SITE}_loggedout') or {}
|
loggedout = cache.get(f'{SITE}_loggedout') or {}
|
||||||
timestamp = int(time.time())
|
timestamp = int(time.time())
|
||||||
|
|
Loading…
Reference in New Issue