no quotes
This commit is contained in:
parent
07d9559100
commit
8cb67e9c34
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
||||||
try:
|
try:
|
||||||
conn = psycopg2.connect("dbname=lorawan")
|
conn = psycopg2.connect("dbname=lorawan")
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
cursor.execute("insert into packets values (DEFAULT, DEFAULT, '%s', '%s')", (provider, data, ))
|
cursor.execute("insert into packets values (DEFAULT, DEFAULT, %s, %s)", (provider, data, ))
|
||||||
cursor.connection.commit()
|
cursor.connection.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue