From 4f70f4ca14ac0e9f9b0365ccdbf13660d0fcc90b Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 00:23:10 -0700 Subject: [PATCH] Update mesh-bot.py --- mesh-bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesh-bot.py b/mesh-bot.py index 7c626bb..b1a987e 100644 --- a/mesh-bot.py +++ b/mesh-bot.py @@ -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: