diff --git a/api/app/application/set_content_repository.py b/api/app/application/set_content_repository.py index 7b02083..def4963 100644 --- a/api/app/application/set_content_repository.py +++ b/api/app/application/set_content_repository.py @@ -28,7 +28,10 @@ class SetContentRepository: async def create_list(self, sets_content: list[SetContent]) -> list[SetContent]: self.db.add_all(sets_content) await self.db.commit() - await self.db.refresh(sets_content) + + for set_content in sets_content: + await self.db.refresh(set_content) + return sets_content async def create(self, set_content: SetContent) -> SetContent: diff --git a/api/req.txt b/api/req.txt index 992aa49..98d82b2 100644 --- a/api/req.txt +++ b/api/req.txt @@ -1,23 +1,11 @@ alembic==1.14.1 -annotated-types==0.7.0 -anyio==4.8.0 asyncpg==0.30.0 -click==8.1.8 fastapi==0.115.8 -greenlet==3.1.1 -h11==0.14.0 -idna==3.10 -Mako==1.3.8 -MarkupSafe==3.0.2 -psycopg==3.2.4 psycopg-binary==3.2.4 pydantic==2.10.6 pydantic-settings==2.7.1 -pydantic_core==2.27.2 python-dotenv==1.0.1 -sniffio==1.3.1 SQLAlchemy==2.0.37 -starlette==0.45.3 -typing_extensions==4.12.2 uvicorn==0.34.0 Werkzeug==3.1.3 +pyjwt==2.10.1 \ No newline at end of file