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: