From 0b8bd8e025645468573517db249b815e6fa14a52 Mon Sep 17 00:00:00 2001 From: Gleb Tcivie Date: Fri, 9 Aug 2024 20:29:50 +0300 Subject: [PATCH] Bugfix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 17164bc..c44dffb 100644 --- a/main.py +++ b/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)" "ON CONFLICT(node_id)" "DO UPDATE SET mqtt_status = %s", - (node_number, status, status, 'Unknown (MQTT)', 'Unknown (MQTT)')) + (node_number, status, 'Unknown (MQTT)', 'Unknown (MQTT)', status)) conn.commit()