diff --git a/app/database/__init__.py b/app/database/__init__.py index 5569104..cfbcc9a 100644 --- a/app/database/__init__.py +++ b/app/database/__init__.py @@ -8,7 +8,7 @@ SQLALCHEMY_DATABASE_URL = settings.db_url # TODO remove check_same_thread when using pg -engine = create_engine(SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}) +engine = create_engine(SQLALCHEMY_DATABASE_URL) # , connect_args={"check_same_thread": False}) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base = declarative_base()