Added connect statement to connect to db before trying to INSERT

This commit is contained in:
Patrick McDonagh
2016-04-11 15:48:17 -05:00
parent 528b62bcbb
commit 40a3a0d304

View File

@@ -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()