mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Add recv_query event for testing
This commit is contained in:
parent
dfb7f96d2d
commit
fa61f97413
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user