From 7d939ef1e47ca4057625ef73f42f626e106c8c9d Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Thu, 14 Nov 2024 19:17:47 +0300 Subject: [PATCH] Auth fix --- App/Auth/__init__.py | 1 - App/Auth/auth_model.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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