Add arguments to insert_xml

This commit is contained in:
Nico Schottelius 2016-09-16 17:44:05 +02:00
parent 5ce2672f97
commit f543598d9f

View file

@ -34,7 +34,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
# And insert into the db # And insert into the db
self.insert_xml(post_data) self.insert_xml(post_data)
def insert_xml(): def insert_xml(self, data):
try: try:
conn = psycopg2.connect("dbname=hackzurich") conn = psycopg2.connect("dbname=hackzurich")
except Exception as e: except Exception as e: