mirror of
https://github.com/tcivie/meshtastic-metrics-exporter.git
synced 2025-01-12 14:27:51 -08:00
Bugfix
This commit is contained in:
parent
6dc3116622
commit
0b8bd8e025
2
main.py
2
main.py
|
@ -42,7 +42,7 @@ def update_node_status(node_number, status):
|
||||||
cur.execute("INSERT INTO node_details (node_id, mqtt_status, short_name, long_name) VALUES (%s, %s, %s, %s)"
|
cur.execute("INSERT INTO node_details (node_id, mqtt_status, short_name, long_name) VALUES (%s, %s, %s, %s)"
|
||||||
"ON CONFLICT(node_id)"
|
"ON CONFLICT(node_id)"
|
||||||
"DO UPDATE SET mqtt_status = %s",
|
"DO UPDATE SET mqtt_status = %s",
|
||||||
(node_number, status, status, 'Unknown (MQTT)', 'Unknown (MQTT)'))
|
(node_number, status, 'Unknown (MQTT)', 'Unknown (MQTT)', status))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue