diff --git a/App/Auth/__init__.py b/App/Auth/__init__.py index 79e03e1..3e426da 100644 --- a/App/Auth/__init__.py +++ b/App/Auth/__init__.py @@ -15,7 +15,6 @@ def auth(): 'login': auth_data.result[0]['login'], 'access_user': data['access'], 'role': auth_data.result[0]['user_role'], - 'db_config': current_app.config['db_config'], 'permanent': True }) return redirect(url_for('index')) diff --git a/App/Auth/auth_model.py b/App/Auth/auth_model.py index 4c36953..7446ac6 100644 --- a/App/Auth/auth_model.py +++ b/App/Auth/auth_model.py @@ -1,6 +1,6 @@ from dataclasses import dataclass -from db.select import select_list -from db.sql_provider import SQLProvider +from .db.select import select_list +from .db.sql_provider import SQLProvider from flask import current_app import os