From b0bca54f22fb29469753568b7f134d6f82afd71a Mon Sep 17 00:00:00 2001 From: andrei Date: Wed, 26 Feb 2025 10:51:53 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D0=BD=D1=82=D0=B0=20=D0=B2=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/application/set_content_repository.py | 5 ++++- api/req.txt | 14 +------------- 2 files changed, 5 insertions(+), 14 deletions(-) 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