Merge app and frontend #3
@@ -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
|
||||
|
||||
+1
-1
@@ -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())
|
||||
|
||||
@@ -43,6 +43,6 @@ class Comment(BaseModel):
|
||||
|
||||
author_id: int
|
||||
card_id: int
|
||||
commet_text: str
|
||||
comment_text: str
|
||||
|
||||
creation_date: str
|
||||
Reference in New Issue
Block a user