diff --git a/main.py b/main.py index 0c8b488..4546679 100644 --- a/main.py +++ b/main.py @@ -11,14 +11,10 @@ from sqlalchemy.ext.declarative import declarative_base logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') # Настройка подключения к БД -DATABASE_URL = "mssql://mis_aokb_desktop_srv:HLqKhOMwPRjNAVvLIKtc@10.48.89.4:1433/amu_mis_AOKB_prod?" -DRIVER_URL = "driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes" +DATABASE_URL = "mssql://mis_aokb_desktop_srv:HLqKhOMwPRjNAVvLIKtc@10.48.89.4:1433/amu_mis_AOKB_prod?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes" # Создаем движок -engine = create_engine( - DATABASE_URL, - DRIVER_URL -) +engine = create_engine(DATABASE_URL) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) # Базовый класс для моделей