From 1359157bceef87e183148c17c95876036ec53dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 27 Aug 2018 10:49:59 +0200 Subject: [PATCH] Fix sort fields in OTA manager --- code/ota.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/ota.py b/code/ota.py index 90f6a702..7e8d9f00 100755 --- a/code/ota.py +++ b/code/ota.py @@ -60,6 +60,11 @@ def on_service_state_change(zeroconf, service_type, name, state_change): for key, item in info.properties.items(): device[key.decode('UTF-8')] = item.decode('UTF-8'); + # rename fields (needed for sorting by name) + device['app'] = device['app_name'] + device['device'] = device['target_board'] + device['version'] = device['app_version'] + devices.append(device)