diff --git a/.gitignore b/.gitignore index 24d1d5d..318a678 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ assets/cert* **/settings.ini +**/__pycache__/* main.db main.db-journal -settings.ini \ No newline at end of file +settings.ini diff --git a/database.py b/database.py index f87b1ee..a6c0745 100755 --- a/database.py +++ b/database.py @@ -90,6 +90,7 @@ class DataBase: user_id, conf_id, user_id, + conf_id, limit ) result = self.execute(sql) @@ -126,4 +127,4 @@ class DataBase: def close(self): - self.conn.close() \ No newline at end of file + self.conn.close() diff --git a/webhook.py b/webhook.py index 02854a4..edfc445 100755 --- a/webhook.py +++ b/webhook.py @@ -30,10 +30,6 @@ class RequestHandler(SimpleHTTPRequestHandler): length = self.headers.get('content-length') post_body = self.rfile.read(int(length)) msg = json.loads(post_body.decode("utf-8")) - msg2 = post_body.decode("utf-8") - fh = open("log.json","a+") - fh.write(msg2) - fh.close() self.worker.handleUpdate(msg) def do_GET(self):