kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
Finishing shortname work
rodzic
4b3843d450
commit
5ba984a5ac
|
@ -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"]
|
||||
|
|
Ładowanie…
Reference in New Issue