diff options
-rw-r--r-- | ausbutler/db.py | 2 | ||||
-rw-r--r-- | requirements.txt | 1 |
2 files changed, 1 insertions, 2 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() diff --git a/requirements.txt b/requirements.txt index c2f0fc6..90e18ff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ jinja2==2.8 sqlalchemy==1.1 bs4 -mysql-python==1.2 |