Revert "make chat count 0 in localhost"

This reverts commit 4a111df278.
remotes/1693045480750635534/spooky-22
Aevann1 2022-08-23 17:18:59 +02:00
parent 5aa03d87bb
commit 268216a537
2 changed files with 1 additions and 2 deletions

View File

@ -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 *

View File

@ -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