Update system.py

This commit is contained in:
SpudGunMan
2024-08-21 23:13:50 -07:00
parent 7f0b4c079a
commit 23b8b8135c
+1 -1
View File
@@ -378,7 +378,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