From 531e188fc2e02c511377b6c1210f2a775da0d924 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 16 Sep 2016 18:17:58 +0200 Subject: [PATCH] Change table to production --- web-to-db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-to-db.py b/web-to-db.py index 3eb66c4..15ea693 100644 --- a/web-to-db.py +++ b/web-to-db.py @@ -38,7 +38,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler): try: conn = psycopg2.connect("dbname=hackzurich") cursor = conn.cursor() - cursor.execute("insert into data_test4 (packet) values (%s)", (data, )) + cursor.execute("insert into data (packet) values (%s)", (data, )) conn.close() except Exception as e: print("DB Insert failed: %s" % e)