Fixed small bug in which mysql_db was assumed a class element

This commit is contained in:
Dennis Potter 2019-01-06 16:46:53 +01:00
parent 9db6136e86
commit 6350aff47e

View File

@ -211,7 +211,8 @@ class Plugin:
datetime_now = dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S") datetime_now = dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
mysql_cursor = self.mysql_db.cursor() mysql_db = self.connect_database()
mysql_cursor = mysql_db.cursor()
select_sql = f"""SELECT dat_id, dat_cat_id, select_sql = f"""SELECT dat_id, dat_cat_id,
dat_headline, dat_begin, dat_end dat_headline, dat_begin, dat_end