summaryrefslogtreecommitdiff
path: root/ausbutler
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-05-04 22:58:23 +0200
committeremkael <emkael@tlen.pl>2017-05-09 02:51:23 +0200
commita072bd51b80128690641c7dfa12d6f158b282806 (patch)
tree7c17c79e58c995f7b7b1cd695cc1d87dc89f7572 /ausbutler
parentdcf8da9a72cd58bb142e30a4f9d5f806cda718cc (diff)
Switching to Oracle MySQL connector
Diffstat (limited to 'ausbutler')
-rw-r--r--ausbutler/db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ausbutler/db.py b/ausbutler/db.py
index df8711d..94f07de 100644
--- a/ausbutler/db.py
+++ b/ausbutler/db.py
@@ -6,7 +6,7 @@ from .config import load_config
def get_session():
session = sessionmaker(bind=create_engine(
- "mysql://{0[user]}:{0[pass]}@{0[host]}/{0[db]}?charset=utf8".format(
+ "mysql+mysqlconnector://{0[user]}:{0[pass]}@{0[host]}/{0[db]}?charset=utf8".format(
load_config('db')
)))
return session()