forked from rDrama/rDrama
1
0
Fork 0

Revert "fix missing loggedin_counter and loggedout_counter"

This reverts commit 14828bd9f4.
master
Aevann1 2022-11-27 03:00:32 +02:00
parent a46b62db0b
commit 84b6f43cf6
1 changed files with 1 additions and 4 deletions

View File

@ -14,10 +14,7 @@ from files.__main__ import app, cache, db_session, limiter
def calc_users(v):
if g.is_api_or_xhr:
g.loggedin_counter = 0
g.loggedout_counter = 0
return ''
if not g.is_api_or_xhr: return
loggedin = cache.get(f'{SITE}_loggedin') or {}
loggedout = cache.get(f'{SITE}_loggedout') or {}
timestamp = int(time.time())