diff --git a/app/main/events.py b/app/main/events.py index 960db923..c8ef6259 100644 --- a/app/main/events.py +++ b/app/main/events.py @@ -5,6 +5,7 @@ from .. import db, socketio from ..models import User import json import jsonpatch +import logging ''' @@ -57,6 +58,12 @@ def disconnect(): disconnected.append(request.sid) +@socketio.on('query_event') +def recv_query(message): + logger = logging.getLogger(__name__) + logger.warning(message) + + def background_task(app, user_id, session_id, foreign=False): ''' ' Sends initial corpus and job lists to the client. Afterwards it checks