Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-19 00:23:10 -07:00
parent 46ae8a4d78
commit 4f70f4ca14
+3 -1
View File
@@ -189,6 +189,8 @@ def get_node_list():
name = get_name_from_number(node['num'])
if name != "":
node_name = get_name_from_number(node['num'])
else:
continue
try:
last_heard = node['lastHeard']
@@ -198,7 +200,7 @@ def get_node_list():
node_list.append(item)
node_list.sort(key=lambda x: x[1], reverse=True)
#return only the last 5 nodes
return node_list[:5]
else: