remotes/1693045480750635534/spooky-22
Aevann1 2022-03-23 18:04:05 +02:00
parent dd8c9eb636
commit 947fbc63f1
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ if "load_chat" in sys.argv:
socketio = SocketIO(app, async_mode='gevent', cors_allowed_origins=[SITE_FULL])
typing = []
online = []
messages = r.get('chat')
messages = cache.get('chat')
@app.get("/chat")
@auth_required
@ -75,5 +75,5 @@ if "load_chat" in sys.argv:
def close_running_threads():
r.set('chat', messages)
cache.set('chat', messages)
atexit.register(close_running_threads)