diff --git a/.github/workflows/app-actions.yml b/.github/workflows/app-actions.yml index 9af1516..ea9c565 100644 --- a/.github/workflows/app-actions.yml +++ b/.github/workflows/app-actions.yml @@ -57,10 +57,10 @@ jobs: - name: Install dependencies run: | + python -m pip install --upgrade pip pip install pytest==8.3.4 pytest-asyncio==0.25.3 httpx==0.28.1 pip install -r app/requirements.txt - - name: Setup moderated base cards - + - name: Setup moderated base cards working-directory: ./app/tools run: python3 _add_base_cards.py -a 2 -f data/base_cards.json - name: Run pytest diff --git a/app/mongo_worker.py b/app/mongo_worker.py index 5a17d2a..52bf500 100644 --- a/app/mongo_worker.py +++ b/app/mongo_worker.py @@ -240,7 +240,7 @@ class MongoWorker: comment_id=await self.get_and_update_counter(counter_name="comment"), author_id=user_id, card_id=card_id, - commet_text=comment_text, + comment_text=comment_text, creation_date=datetime.now().isoformat(), ) await self.comments_data.insert_one(new_comment.model_dump()) diff --git a/app/schemas/base_schemas.py b/app/schemas/base_schemas.py index 52f5464..d5a58c2 100644 --- a/app/schemas/base_schemas.py +++ b/app/schemas/base_schemas.py @@ -43,6 +43,6 @@ class Comment(BaseModel): author_id: int card_id: int - commet_text: str + comment_text: str creation_date: str \ No newline at end of file