summaryrefslogtreecommitdiffstats
path: root/dash
diff options
context:
space:
mode:
authorJonathan Bauer2022-04-26 17:47:42 +0200
committerJonathan Bauer2022-04-26 17:47:42 +0200
commitdf7c7e67eabcf20e5748e6121f40915246342388 (patch)
treeee8835505f27a03e1934eac1937c9565ddfdc4cb /dash
parentimport.py: make pymysql.connect call explicit (diff)
downloadbwlp-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.py2
1 files changed, 1 insertions, 1 deletions
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):