diff options
author | Jonathan Bauer | 2022-04-26 17:47:42 +0200 |
---|---|---|
committer | Jonathan Bauer | 2022-04-26 17:47:42 +0200 |
commit | df7c7e67eabcf20e5748e6121f40915246342388 (patch) | |
tree | ee8835505f27a03e1934eac1937c9565ddfdc4cb /dash | |
parent | import.py: make pymysql.connect call explicit (diff) | |
download | bwlp-statistics-df7c7e67eabcf20e5748e6121f40915246342388.tar.gz bwlp-statistics-df7c7e67eabcf20e5748e6121f40915246342388.tar.xz bwlp-statistics-df7c7e67eabcf20e5748e6121f40915246342388.zip |
fix round 2
Diffstat (limited to 'dash')
-rw-r--r-- | dash/db.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): |