From fa61f974131e30306494e7217b39e59496d44649 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Mon, 4 Nov 2019 13:18:55 +0100 Subject: [PATCH] Add recv_query event for testing --- app/main/events.py | 7 +++++++ 1 file changed, 7 insertions(+) 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