fix bug I introduced

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-20 14:38:46 +02:00
parent d5b4818d61
commit 734844291c
3 changed files with 5 additions and 2 deletions

View File

@ -1014,4 +1014,6 @@ has_sidebar = path.exists(f'files/templates/sidebar_{SITE_NAME}.html')
has_logo = path.exists(f'files/assets/images/{SITE_NAME}/logo.webp')
has_app = path.exists(f'files/assets/app_{SITE_NAME}_v2.4.apk')
GLOBAL = environ.get("GLOBAL")
GLOBAL = environ.get("GLOBAL")
ONLINE_STR = f'{SITE}_online'

View File

@ -58,4 +58,4 @@ def inject_constants():
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION,
"has_sidebar": has_sidebar, "has_logo": has_logo, "has_app": has_app,
"FP": FP, "NOTIF_MODACTION_JL_MIN": NOTIF_MODACTION_JL_MIN, "cache": cache, "ONLINE_STR": f'{SITE}_online', "patron": patron}
"FP": FP, "NOTIF_MODACTION_JL_MIN": NOTIF_MODACTION_JL_MIN, "cache": cache, "ONLINE_STR": ONLINE_STR, "patron": patron}

View File

@ -18,6 +18,7 @@ else:
typing = []
online = []
cache.set(ONLINE_STR, len(online))
muted = cache.get(f'{SITE}_muted') or {}
messages = cache.get(f'{SITE}_chat') or []
total = cache.get(f'{SITE}_total') or 0