From 76e2b86b84c33ed63b557dd1c0b97524a3327882 Mon Sep 17 00:00:00 2001 From: thomaswoehlke <thomas.woehlke@gmail.com> Date: Wed, 28 Apr 2021 16:26:15 +0200 Subject: [PATCH] working on: 0.0.32 Release --- requirements/dev.in | 2 -- src/database.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/requirements/dev.in b/requirements/dev.in index c5150daa..82f76977 100644 --- a/requirements/dev.in +++ b/requirements/dev.in @@ -9,9 +9,7 @@ Flask-Login==0.5.0 SQLAlchemy>=1.4.5 celery[redis]>=5.0.5 mariadb==1.0.6 -mysqlclient==2.0.3 psycopg2-binary==2.8.6 -cx-Oracle==8.1.0 wget>=3.2 pyecharts>=1.9.0 pyecharts-extras>=0.0.5 diff --git a/src/database.py b/src/database.py index 83905508..f3bdda54 100644 --- a/src/database.py +++ b/src/database.py @@ -27,7 +27,7 @@ def create_app(): login_manager.login_view = 'usr.login' login_manager.init_app(my_app) my_app.config.from_object("config") - my_db_url_mariadb = "mariadb+pymysql://{user}:{pw}@{url}/{db}?charset=utf8mb4&pool_pre_ping=True".format( + my_db_url_mariadb = "mariadb+mariadbconnector://{user}:{pw}@{url}/{db}?charset=utf8mb4&pool_pre_ping=True".format( user=my_app.config['SQLALCHEMY_DATABASE_USER'], pw=my_app.config['SQLALCHEMY_DATABASE_PW'], url=my_app.config['SQLALCHEMY_DATABASE_HOST'], -- GitLab