diff --git a/main.ipynb b/main.ipynb index 0c74fe0..f67d044 100644 --- a/main.ipynb +++ b/main.ipynb @@ -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", diff --git a/main.py b/main.py index 02481dc..697cc95 100644 --- a/main.py +++ b/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: