Revert "make chat count 0 in localhost"
This reverts commit 4a111df278
.
remotes/1693045480750635534/spooky-22
parent
5aa03d87bb
commit
268216a537
|
@ -125,8 +125,6 @@ def teardown_request(error):
|
|||
del g.db
|
||||
stdout.flush()
|
||||
|
||||
cache.set(f'{app.config["SERVER_NAME"]}_online', 0, timeout=0)
|
||||
|
||||
if app.config["SERVER_NAME"] == 'localhost':
|
||||
from files.routes import *
|
||||
# from files.routes.chat import *
|
||||
|
|
|
@ -18,6 +18,7 @@ else:
|
|||
|
||||
typing = []
|
||||
online = []
|
||||
cache.set(ONLINE_STR, len(online), timeout=0)
|
||||
muted = cache.get(f'{SITE}_muted') or {}
|
||||
messages = cache.get(f'{SITE}_chat') or []
|
||||
total = cache.get(f'{SITE}_total') or 0
|
||||
|
|
Loading…
Reference in New Issue