Added connect statement to connect to db before trying to INSERT
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user