forked from MarseyWorld/MarseyWorld
fix bug I introduced
parent
d5b4818d61
commit
734844291c
|
@ -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_logo = path.exists(f'files/assets/images/{SITE_NAME}/logo.webp')
|
||||||
has_app = path.exists(f'files/assets/app_{SITE_NAME}_v2.4.apk')
|
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'
|
|
@ -58,4 +58,4 @@ def inject_constants():
|
||||||
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
|
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
|
||||||
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION,
|
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION,
|
||||||
"has_sidebar": has_sidebar, "has_logo": has_logo, "has_app": has_app,
|
"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}
|
||||||
|
|
|
@ -18,6 +18,7 @@ else:
|
||||||
|
|
||||||
typing = []
|
typing = []
|
||||||
online = []
|
online = []
|
||||||
|
cache.set(ONLINE_STR, len(online))
|
||||||
muted = cache.get(f'{SITE}_muted') or {}
|
muted = cache.get(f'{SITE}_muted') or {}
|
||||||
messages = cache.get(f'{SITE}_chat') or []
|
messages = cache.get(f'{SITE}_chat') or []
|
||||||
total = cache.get(f'{SITE}_total') or 0
|
total = cache.get(f'{SITE}_total') or 0
|
||||||
|
|
Loading…
Reference in New Issue