flex tape patch

pull/1/head
justcool393 2022-11-29 18:06:16 -06:00
parent de8a45412b
commit 20459a59dd
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def calc_users():
loggedout_counter = 0
loggedin_chat = 0
v = getattr(g, 'v', None) if g else None
if has_request_context and g and g.desires_auth and not g.is_api_or_xhr:
if has_request_context and g and getattr(g, 'desires_auth', False) and not getattr(g, 'is_api_or_xhr', True):
loggedin = cache.get(LOGGED_IN_CACHE_KEY) or {}
loggedout = cache.get(LOGGED_OUT_CACHE_KEY) or {}
loggedin_chat = cache.get(CHAT_ONLINE_CACHE_KEY) or 0