issue mentioned https://github.com/SpudGunMan/meshing-around/issues/31
This commit is contained in:
SpudGunMan
2024-08-07 15:48:23 -07:00
parent cd8a5bafcf
commit 9de72a26d0
2 changed files with 13 additions and 3 deletions
+9 -3
View File
@@ -185,9 +185,15 @@ def get_node_list(nodeInt=1):
logger.warning(f"System: No nodes found")
return ERROR_FETCHING_DATA
node_list1.sort(key=lambda x: x[1], reverse=True)
#print (f"Node List: {node_list1[:5]}\n")
node_list2.sort(key=lambda x: x[1], reverse=True)
try:
#print (f"Node List: {node_list1[:5]}\n")
node_list1.sort(key=lambda x: x[1], reverse=True)
#print (f"Node List: {node_list1[:5]}\n")
node_list2.sort(key=lambda x: x[1], reverse=True)
except Exception as e:
logger.error(f"System: Error sorting node list: {e}")
print (f"Node List1: {node_list1[:5]}\n")
print (f"Node List2: {node_list2[:5]}\n")
# make a nice list for the user
for x in node_list1[:SITREP_NODE_COUNT]: