Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-18 22:48:58 -07:00
parent a9da8e4f70
commit 0f481b08e6
+2 -1
View File
@@ -187,7 +187,8 @@ def get_node_list():
#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
node_list = [x[0] for x in node_list[:5]]
#node_list = [x[0] for x in node_list[:5]]
print(node_list)
return node_list
else:
node_list.append("Nothing heard")