mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-08-05 16:23:14 +02:00
fix(paths): use _get_dm() instead of nonexistent cli.get_device_manager()
The reset_flood endpoint was calling cli.get_device_manager() which doesn't exist. All other endpoints use the local _get_dm() helper. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -2315,7 +2315,7 @@ def reorder_contact_paths(pubkey):
|
||||
def reset_contact_to_flood(pubkey):
|
||||
"""Reset device path to FLOOD mode (does not delete configured paths)."""
|
||||
try:
|
||||
dm = cli.get_device_manager()
|
||||
dm = _get_dm()
|
||||
if not dm or not dm.is_connected:
|
||||
return jsonify({'success': False, 'error': 'Device not connected'}), 503
|
||||
dev_result = dm.reset_path(pubkey)
|
||||
|
||||
Reference in New Issue
Block a user