human hand off bug

This commit is contained in:
debu-2 2026-10-06 18:27:06 +05:30
parent 223f846782
commit 6e7a0b9539
22 changed files with 1040 additions and 336 deletions

View file

@ -1,3 +1,5 @@
from datetime import timezone
from collections.abc import AsyncIterator
from pymongo import AsyncMongoClient
@ -14,7 +16,11 @@ settings = get_settings()
engine = create_async_engine(settings.database_url, pool_pre_ping=True)
SessionFactory = async_sessionmaker(engine, expire_on_commit=False)
mongo_client: AsyncMongoClient = AsyncMongoClient(settings.mongo_url)
mongo_client: AsyncMongoClient = AsyncMongoClient(
settings.mongo_url,
tz_aware=True,
tzinfo=timezone.utc,
)
mongo_db = mongo_client[settings.mongo_database]