Add recv_query event for testing

This commit is contained in:
Stephan Porada 2019-11-04 13:18:55 +01:00
parent dfb7f96d2d
commit fa61f97413

View File

@ -5,6 +5,7 @@ from .. import db, socketio
from ..models import User from ..models import User
import json import json
import jsonpatch import jsonpatch
import logging
''' '''
@ -57,6 +58,12 @@ def disconnect():
disconnected.append(request.sid) 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): def background_task(app, user_id, session_id, foreign=False):
''' '''
' Sends initial corpus and job lists to the client. Afterwards it checks ' Sends initial corpus and job lists to the client. Afterwards it checks