Some bugfix
This commit is contained in:
@@ -57,10 +57,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
pip install pytest==8.3.4 pytest-asyncio==0.25.3 httpx==0.28.1
|
pip install pytest==8.3.4 pytest-asyncio==0.25.3 httpx==0.28.1
|
||||||
pip install -r app/requirements.txt
|
pip install -r app/requirements.txt
|
||||||
- name: Setup moderated base cards
|
- name: Setup moderated base cards
|
||||||
|
|
||||||
working-directory: ./app/tools
|
working-directory: ./app/tools
|
||||||
run: python3 _add_base_cards.py -a 2 -f data/base_cards.json
|
run: python3 _add_base_cards.py -a 2 -f data/base_cards.json
|
||||||
- name: Run pytest
|
- name: Run pytest
|
||||||
|
|||||||
+1
-1
@@ -240,7 +240,7 @@ class MongoWorker:
|
|||||||
comment_id=await self.get_and_update_counter(counter_name="comment"),
|
comment_id=await self.get_and_update_counter(counter_name="comment"),
|
||||||
author_id=user_id,
|
author_id=user_id,
|
||||||
card_id=card_id,
|
card_id=card_id,
|
||||||
commet_text=comment_text,
|
comment_text=comment_text,
|
||||||
creation_date=datetime.now().isoformat(),
|
creation_date=datetime.now().isoformat(),
|
||||||
)
|
)
|
||||||
await self.comments_data.insert_one(new_comment.model_dump())
|
await self.comments_data.insert_one(new_comment.model_dump())
|
||||||
|
|||||||
@@ -43,6 +43,6 @@ class Comment(BaseModel):
|
|||||||
|
|
||||||
author_id: int
|
author_id: int
|
||||||
card_id: int
|
card_id: int
|
||||||
commet_text: str
|
comment_text: str
|
||||||
|
|
||||||
creation_date: str
|
creation_date: str
|
||||||
Reference in New Issue
Block a user