fix
This commit is contained in:
parent
5458c6442a
commit
002235b6f6
@ -1535,7 +1535,8 @@
|
||||
" ]\n",
|
||||
"\n",
|
||||
" cursor = competition_request_col.aggregate(pipeline)\n",
|
||||
" return await cursor.to_list(length=None)"
|
||||
" data = await cursor.to_list(length=None)\n",
|
||||
" return await posts_collection.find({\"_id\": {\"$in\":[ ObjectId(doc['_id']) if type(doc['_id']) is str else doc['_id'] for doc in data ]}}).to_list()"
|
||||
],
|
||||
"display_name": ".venv"
|
||||
},
|
||||
|
||||
3
main.py
3
main.py
@ -1186,7 +1186,8 @@ async def get_unique_posts_by_user(
|
||||
]
|
||||
|
||||
cursor = competition_request_col.aggregate(pipeline)
|
||||
return await cursor.to_list(length=None)
|
||||
data = await cursor.to_list(length=None)
|
||||
return await posts_collection.find({"_id": {"$in":[ ObjectId(doc['_id']) if type(doc['_id']) is str else doc['_id'] for doc in data ]}}).to_list()
|
||||
|
||||
async def get_unique_posts_с(competition_request_col: AsyncIOMotorCollection, competition_id: str, finish: bool = False) -> List[Any]:
|
||||
match_criteria = {
|
||||
|
||||
2
vk.py
2
vk.py
@ -188,6 +188,7 @@ async def send_vk(data:dict, request: Request):
|
||||
return {"ok": True}
|
||||
|
||||
|
||||
|
||||
# TODO: function call like send_tg from tg.py (without router)
|
||||
@router.post("/edit")
|
||||
async def edit_vk(data:dict, request: Request):
|
||||
@ -257,6 +258,7 @@ async def edit_vk(data:dict, request: Request):
|
||||
return {"ok": True}
|
||||
|
||||
|
||||
|
||||
# TODO: function call like send_tg from tg.py (without router)
|
||||
@router.post("/delete")
|
||||
async def wall_delete(data: dict, request: Request):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user