From 4e5303db36b731ff500c72c043a2e91e0235cc354d303b2d3c7133cf54d3fd00 Mon Sep 17 00:00:00 2001 From: vladislav Date: Sat, 19 Sep 2026 13:11:47 -0400 Subject: [PATCH] fix --- main.ipynb | 4 ++-- main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.ipynb b/main.ipynb index 9b43bd2..afcbb2c 100644 --- a/main.ipynb +++ b/main.ipynb @@ -671,7 +671,7 @@ "\n", " if post and post.get(\"user\"):\n", " notified_post_user_ids.update({str(post[\"user\"].get(\"_id\")):1})\n", - " \n", + " doc.pop('_id')\n", " new_doc = {\n", " **doc,\n", " \"exhibition\": exhibition_to_start,\n", @@ -3392,7 +3392,7 @@ " link=\"/profile/delivery\",\n", " text=f\"{str(existing.get('post',{}).get('title'))}\"\n", " ))\n", - "\n", + " \n", " new_doc = {**existing, **update_data, \"notify\": notify.upserted_id}\n", "\n", " result = await delivery_collection.insert_one(new_doc)\n", diff --git a/main.py b/main.py index f8cbf48..a6832fa 100644 --- a/main.py +++ b/main.py @@ -443,7 +443,7 @@ async def cron_every_five_min(token: str = Security(get_token)): if post and post.get("user"): notified_post_user_ids.update({str(post["user"].get("_id")):1}) - + doc.pop('_id') new_doc = { **doc, "exhibition": exhibition_to_start,