From a072bd51b80128690641c7dfa12d6f158b282806 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 4 May 2017 22:58:23 +0200 Subject: Switching to Oracle MySQL connector --- ausbutler/db.py | 2 +- requirements.txt | 1 - 2 files changed, 1 insertion(+), 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 -- cgit v1.2.3