trying to fix annoying bug

master
Aevann1 2022-08-20 14:32:19 +02:00
parent b7b7036b08
commit d5b4818d61
1 changed files with 2 additions and 2 deletions

View File

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