Finishing shortname work

pull/1/head
Jeremiah K 2023-06-08 22:09:37 -05:00
rodzic 4b3843d450
commit 5ba984a5ac
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -111,8 +111,8 @@ def save_shortname(meshtastic_id, shortname):
conn.commit()
def update_shortname(nodes):
if meshtastic_interface.nodes:
for node in meshtastic_interface.nodes.values():
if nodes:
for node in nodes.values():
user = node.get("user")
if user:
meshtastic_id = user["id"]