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",
|
" doc = await posts_collection.update_one({'$or': fin}, {'$set': {\"status\": \"Продано\"}})\n",
|
||||||
" if doc.modified_count: \n",
|
" if doc.modified_count: \n",
|
||||||
" existing = await delivery_collection.find_one(\n",
|
" existing = await delivery_collection.find_one(\n",
|
||||||
" {\"post_id\": post_id},\n",
|
" {\"post_id\": post_id, \"status\": \"На выставке\"},\n",
|
||||||
" {\"_id\": 0}\n",
|
" {\"_id\": 0}\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
" if existing:\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": "Продано"}})
|
doc = await posts_collection.update_one({'$or': fin}, {'$set': {"status": "Продано"}})
|
||||||
if doc.modified_count:
|
if doc.modified_count:
|
||||||
existing = await delivery_collection.find_one(
|
existing = await delivery_collection.find_one(
|
||||||
{"post_id": post_id},
|
{"post_id": post_id, "status": "На выставке"},
|
||||||
{"_id": 0}
|
{"_id": 0}
|
||||||
)
|
)
|
||||||
if existing:
|
if existing:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user