From f543598d9fb991ff8aa06e80b57cd6a7debab0ba Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 16 Sep 2016 17:44:05 +0200 Subject: [PATCH] Add arguments to insert_xml --- 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 3867f4a..902e5b0 100644 --- a/web-to-db.py +++ b/web-to-db.py @@ -34,7 +34,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler): # And insert into the db self.insert_xml(post_data) - def insert_xml(): + def insert_xml(self, data): try: conn = psycopg2.connect("dbname=hackzurich") except Exception as e: