mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-06 17:03:04 +02:00
Update mesh-bot.py
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ def get_node_list():
|
||||
for node in interface.nodes.values():
|
||||
#ignore own
|
||||
if node['num'] != myNodeNum:
|
||||
node_list.append(get_name_from_number(node['num']),node['lastHeard'])
|
||||
node_list.append(get_name_from_number(node['num'])),node['lastHeard']
|
||||
#sort by last heard
|
||||
node_list.sort(key=lambda x: x[1], reverse=True)
|
||||
#return only the last 5 nodes 0 value is the name ignore last heard
|
||||
|
||||
Reference in New Issue
Block a user