From df7c7e67eabcf20e5748e6121f40915246342388 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 26 Apr 2022 17:47:42 +0200 Subject: fix round 2 --- dash/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash/db.py b/dash/db.py index b417cfd..1f87a09 100644 --- a/dash/db.py +++ b/dash/db.py @@ -7,7 +7,7 @@ c = configparser.ConfigParser() c.read('config.ini') def getConnection(): - db = pymysql.connect(c.get('db', 'host'), c.get('db', 'username'), c.get('db', 'password'), c.get('db', 'name'), cursorclass=pymysql.cursors.DictCursor) + db = pymysql.connect(host=c.get('db', 'host'), user=c.get('db', 'username'), password=c.get('db', 'password'), database=c.get('db', 'name'), charset='utf8mb4', cursorclass=pymysql.cursors.DictCursor) return db def closeConnection(db): -- cgit v1.2.3-55-g7522