From 40a3a0d304e078ef1168b529a2599ce211b7a583 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Mon, 11 Apr 2016 15:48:17 -0500 Subject: [PATCH] Added connect statement to connect to db before trying to INSERT --- python/tag_mysql.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/tag_mysql.py b/python/tag_mysql.py index e13a86b..b8f7dc8 100644 --- a/python/tag_mysql.py +++ b/python/tag_mysql.py @@ -82,6 +82,7 @@ class Tag(): self.last_send_time = time.time() print query # TODO: CHECK ON THIS LOGIC -- with con: + con.connect() cur = con.cursor() cur.execute(query) con.commit()