Fix bndname in replication

This commit is contained in:
Ivan Vazhenin
2023-11-09 10:41:43 +07:00
parent 5b17bba5bf
commit 36e23465a8
2 changed files with 3 additions and 3 deletions

3
db.py
View File

@@ -2,6 +2,7 @@ from datetime import datetime
from typing import List, Optional
from sqlalchemy import create_engine, String, select, ForeignKey, Enum
from sqlalchemy.orm import Session, DeclarativeBase, Mapped, mapped_column, relationship
from config import Config
def tow(day: int, hour: int, minute: int):
@@ -133,4 +134,4 @@ class Schemas(Base):
def connect_db():
return create_engine("postgresql+psycopg://postgres:Root12345678@10.10.8.83:32101/db")
return create_engine(f"postgresql+psycopg://{Config.pg_username}:{Config.pg_password}@{Config.pg_host}:{Config.pg_port}/{Config.pg_dbname}")