This commit is contained in:
vladislav 2026-09-01 23:05:26 -04:00
parent 2d55db52ce
commit e3a74103db
Signed by: Vladislav
GPG Key ID: D97C9E5E4860EE45
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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: