mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-15 11:05:16 +00:00
Pass ack back on search
This commit is contained in:
parent
e0ebffac8c
commit
4fb218be56
|
@ -233,7 +233,9 @@ def logout():
|
|||
@socketio.on('mainSearch')
|
||||
def mainSearch(data):
|
||||
if data['term'].strip() != "":
|
||||
emit('mainSearch', app.mainSearch(session['dz'], data['term']))
|
||||
result = app.mainSearch(session['dz'], data['term'])
|
||||
result['ack'] = data.get('ack')
|
||||
emit('mainSearch', result)
|
||||
|
||||
|
||||
@socketio.on('search')
|
||||
|
@ -241,6 +243,7 @@ def search(data):
|
|||
if data['term'].strip() != "":
|
||||
result = app.search(session['dz'], data['term'], data['type'], data['start'], data['nb'])
|
||||
result['type'] = data['type']
|
||||
result['ack'] = data.get('ack')
|
||||
emit('search', result)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue