no quotes

This commit is contained in:
Nico Schottelius 2016-10-10 13:00:58 +02:00
parent 07d9559100
commit 8cb67e9c34
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
try:
conn = psycopg2.connect("dbname=lorawan")
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()
conn.close()
except Exception as e: