Update system.py

This commit is contained in:
SpudGunMan
2024-08-21 22:48:44 -07:00
parent 7915798ca2
commit 47649cdedc
+1 -1
View File
@@ -337,7 +337,7 @@ def get_closest_nodes(nodeInt=1,returnCount=3):
longitude = node['position']['longitude']
#lastheard time in unix time
lastheard = node['lastHeard']
lastheard = node.get('lastHeard', 0)
#if last heard is over 24 hours ago, ignore the node
if lastheard < (time.time() - 86400):
continue