diff --git a/main.ipynb b/main.ipynb index 7cb0e5d..4568785 100644 --- a/main.ipynb +++ b/main.ipynb @@ -591,6 +591,7 @@ " \"sender\": doc.get(\"exhibition\", {}).get(\"user\"),\n", " }\n", " new_doc.pop('_id')\n", + " new_doc.pop('exhibition')\n", "\n", " await delivery_collection.update_one(\n", " {**prod_filter, \"status\": \"Возврат художнику\", \"post_id\": post_id, \"exhibition_id\": exhibition_id},\n", diff --git a/main.py b/main.py index aac2b90..e0c93cb 100644 --- a/main.py +++ b/main.py @@ -379,6 +379,7 @@ async def cron_every_five_min(token: str = Security(get_token)): "sender": doc.get("exhibition", {}).get("user"), } new_doc.pop('_id') + new_doc.pop('exhibition') await delivery_collection.update_one( {**prod_filter, "status": "Возврат художнику", "post_id": post_id, "exhibition_id": exhibition_id},