fix
This commit is contained in:
parent
e3a74103db
commit
cacaf9fb64
@ -700,7 +700,7 @@
|
||||
" exhibition = await exhibition_collection.find_one({'_id': ObjectId(exhibition_id)})\n",
|
||||
" exhibition_owner = exhibition.get('user')\n",
|
||||
" obj_ids = [ObjectId(x) for x in exhibition.get('posts', [])]\n",
|
||||
" posts = await posts_collection.find({\"_id\": {\"$in\": obj_ids}}).to_list() if obj_ids else []\n",
|
||||
" posts = await posts_collection.find({\"_id\": {\"$in\": obj_ids}, 'status': 'В каталоге'}).to_list() if obj_ids else []\n",
|
||||
" new_posts = {}\n",
|
||||
" all_posts = {}\n",
|
||||
" for post in posts:\n",
|
||||
|
||||
2
tasks.py
2
tasks.py
@ -529,7 +529,7 @@ async def exhibition_send_invitations(exhibition_id):
|
||||
exhibition = await exhibition_collection.find_one({'_id': ObjectId(exhibition_id)})
|
||||
exhibition_owner = exhibition.get('user')
|
||||
obj_ids = [ObjectId(x) for x in exhibition.get('posts', [])]
|
||||
posts = await posts_collection.find({"_id": {"$in": obj_ids}}).to_list() if obj_ids else []
|
||||
posts = await posts_collection.find({"_id": {"$in": obj_ids}, 'status': 'В каталоге'}).to_list() if obj_ids else []
|
||||
new_posts = {}
|
||||
all_posts = {}
|
||||
for post in posts:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user