From 554a8d4dcddc2fd0334fdb65b23771d79c6acc37 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 00:35:42 -0700 Subject: [PATCH] Update mesh-bot.py --- mesh-bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh-bot.py b/mesh-bot.py index 58ac37d..b52e80c 100644 --- a/mesh-bot.py +++ b/mesh-bot.py @@ -197,10 +197,10 @@ def get_node_list(): node_list.append(item) node_list.sort(key=lambda x: x[1], reverse=True) - + print (f"Node List: {node_list[:5]}\n") #return only the last 5 nodes nice_node_list = [x[0] for x in node_list[:5]] - return nice_node_list[:5] + return nice_node_list else: node_list.append("Nothing heard") return node_list