From 7bc848001526a224826f3a621dfa7781812fca1a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Mar 2022 15:54:17 +0200 Subject: [PATCH] fds --- files/routes/chat.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 0d00bbedd..a7a922e18 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -1,6 +1,7 @@ from files.helpers.const import SITE -if SITE != 'rdrama.net': +if SITE in ('pcmemes.net', 'localhost'): + import time from files.helpers.wrappers import auth_required from files.helpers.sanitize import sanitize from datetime import datetime @@ -9,14 +10,11 @@ if SITE != 'rdrama.net': from flask import render_template import sys - socketio = SocketIO(app) + socketio = SocketIO(app, async_mode='gevent') typing = [] online = [] messages = [] - if __name__ == '__main__': - socketio.run(app) - @app.get("/chat") @auth_required def chat( v):