Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-18 23:22:03 -07:00
parent 90eebfd4df
commit 763e3c6387
+2 -2
View File
@@ -188,10 +188,10 @@ def get_node_list():
#append the name and the lastHeard value
node_name = get_name_from_number(node['num'])
last_heard = node['lastHeard']
node_list.append([node_name,last_heard])
print (f"Node: {node_name} Last Heard: {last_heard}")
#sort matrix by lastHeard
node_list.sort(key=lambda x: x[1], reverse=True)
#node_list.sort(key=lambda x: x[1], reverse=True)
#return only the last 5 nodes