From d5b4818d6186a0f6a1fc95b233a297fbaffe5cf2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 20 Aug 2022 14:32:19 +0200 Subject: [PATCH] trying to fix annoying bug --- files/routes/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 5d6f45cc8..4672214f0 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -95,7 +95,7 @@ def connect(v): if v.username not in online: online.append(v.username) emit("online", online, broadcast=True) - cache.set(f'{SITE}_online', len(online)) + cache.set(ONLINE_STR, len(online)) emit('typing', typing) return '', 204 @@ -106,7 +106,7 @@ def disconnect(v): if v.username in online: online.remove(v.username) emit("online", online, broadcast=True) - cache.set(f'{SITE}_online', len(online)) + cache.set(ONLINE_STR, len(online)) if v.username in typing: typing.remove(v.username) emit('typing', typing, broadcast=True)