Skip to content

Commit

Permalink
del commetns
Browse files Browse the repository at this point in the history
  • Loading branch information
ProFastCode committed Jul 20, 2024
1 parent a5e3288 commit 08eeb6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def __new__(cls, *args, **kwargs):
def __init__(
self, engine: AsyncEngine | None = None, session: AsyncSession | None = None
) -> None:
if not hasattr(self, "initialized"): # Проверка, инициализирован ли объект
if not hasattr(self, "initialized"):
self.engine = engine
self.session = session
self.initialized = True # Установим флаг инициализации
self.initialized = True

async def __set_async_engine(self) -> None:
if self.engine is None:
Expand Down

0 comments on commit 08eeb6d

Please sign in to comment.