Some bugfix

This commit is contained in:
IgorVolochay
2026-08-21 12:20:55 +03:00
parent 328a20a7e3
commit e3b78e0eca
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
working-directory: ./app/tools
run: python3 _add_base_cards.py -a 2 -f data/base_cards.json
- name: Run pytest
+1 -1
View File
@@ -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())
+1 -1
View File
@@ -43,6 +43,6 @@ class Comment(BaseModel):
author_id: int
card_id: int
commet_text: str
comment_text: str
creation_date: str