socket set up properly
This commit is contained in:
Binary file not shown.
@ -95,7 +95,7 @@ class MetaDataManager:
|
||||
|
||||
collection["clips"] = new_order
|
||||
if not self.socket is None:
|
||||
self.socket.emit('collection_updated', {'collection': collection})
|
||||
self.socket.emit('collection_updated', collection)
|
||||
self.save_metadata()
|
||||
|
||||
def save_metadata(self):
|
||||
|
||||
@ -28,4 +28,5 @@ def set_all_settings():
|
||||
SettingsManager().set_settings(name, value)
|
||||
return jsonify({'status': 'success', 'settings': settings})
|
||||
except ValueError as e:
|
||||
return jsonify({'status': 'error', 'message': str(e)}), 400
|
||||
return jsonify({'status': 'error', 'message': str(e)}), 400
|
||||
|
||||
Reference in New Issue
Block a user