From 5de4883ce49cc36504edfdce06870fa516520b38 Mon Sep 17 00:00:00 2001 From: Shaun Setlock Date: Sun, 1 Jan 2023 16:50:00 -0500 Subject: [PATCH] Corrected table name for INSERT statement. --- writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writer.py b/writer.py index 7d2a3c8..dae8259 100644 --- a/writer.py +++ b/writer.py @@ -33,7 +33,7 @@ def insert_data(conn, data): # insert a new vendor into the vendors table sql = """ INSERT INTO - air(datetime, temperature, humidity, location) + dht22(datetime, temperature, humidity, location) VALUES (%s, %s, %s, %s) """