mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 18:36:07 +00:00
Fixed interface send with no value
This commit is contained in:
parent
9a69134ba9
commit
085ea75575
|
@ -30,8 +30,11 @@ server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching
|
|||
socketio = SocketIO(server)
|
||||
|
||||
class SocketInterface(MessageInterface):
|
||||
def send(self, message, value):
|
||||
socketio.emit(message, value)
|
||||
def send(self, message, value=None):
|
||||
if value:
|
||||
socketio.emit(message, value)
|
||||
else:
|
||||
socketio.emit(message)
|
||||
|
||||
socket_interface = SocketInterface()
|
||||
|
||||
|
|
Loading…
Reference in a new issue