fix
This commit is contained in:
parent
2d55db52ce
commit
e3a74103db
@ -3258,7 +3258,7 @@
|
||||
" doc = await posts_collection.update_one({'$or': fin}, {'$set': {\"status\": \"Продано\"}})\n",
|
||||
" if doc.modified_count: \n",
|
||||
" existing = await delivery_collection.find_one(\n",
|
||||
" {\"post_id\": post_id},\n",
|
||||
" {\"post_id\": post_id, \"status\": \"На выставке\"},\n",
|
||||
" {\"_id\": 0}\n",
|
||||
" )\n",
|
||||
" if existing:\n",
|
||||
|
||||
2
main.py
2
main.py
@ -2424,7 +2424,7 @@ async def sale_painting(
|
||||
doc = await posts_collection.update_one({'$or': fin}, {'$set': {"status": "Продано"}})
|
||||
if doc.modified_count:
|
||||
existing = await delivery_collection.find_one(
|
||||
{"post_id": post_id},
|
||||
{"post_id": post_id, "status": "На выставке"},
|
||||
{"_id": 0}
|
||||
)
|
||||
if existing:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user