Corrected table name for INSERT statement.
This commit is contained in:
@@ -33,7 +33,7 @@ def insert_data(conn, data):
|
|||||||
# insert a new vendor into the vendors table
|
# insert a new vendor into the vendors table
|
||||||
sql = """
|
sql = """
|
||||||
INSERT INTO
|
INSERT INTO
|
||||||
air(datetime, temperature, humidity, location)
|
dht22(datetime, temperature, humidity, location)
|
||||||
VALUES
|
VALUES
|
||||||
(%s, %s, %s, %s)
|
(%s, %s, %s, %s)
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user