This commit is contained in:
vladislav 2026-09-19 13:11:47 -04:00
parent fcab4a8df9
commit 4e5303db36
Signed by: Vladislav
GPG Key ID: B6B4ECD9C7CA9D2D
2 changed files with 3 additions and 3 deletions

View File

@ -671,7 +671,7 @@
"\n", "\n",
" if post and post.get(\"user\"):\n", " if post and post.get(\"user\"):\n",
" notified_post_user_ids.update({str(post[\"user\"].get(\"_id\")):1})\n", " notified_post_user_ids.update({str(post[\"user\"].get(\"_id\")):1})\n",
" \n", " doc.pop('_id')\n",
" new_doc = {\n", " new_doc = {\n",
" **doc,\n", " **doc,\n",
" \"exhibition\": exhibition_to_start,\n", " \"exhibition\": exhibition_to_start,\n",
@ -3392,7 +3392,7 @@
" link=\"/profile/delivery\",\n", " link=\"/profile/delivery\",\n",
" text=f\"{str(existing.get('post',{}).get('title'))}\"\n", " text=f\"{str(existing.get('post',{}).get('title'))}\"\n",
" ))\n", " ))\n",
"\n", " \n",
" new_doc = {**existing, **update_data, \"notify\": notify.upserted_id}\n", " new_doc = {**existing, **update_data, \"notify\": notify.upserted_id}\n",
"\n", "\n",
" result = await delivery_collection.insert_one(new_doc)\n", " result = await delivery_collection.insert_one(new_doc)\n",

View File

@ -443,7 +443,7 @@ async def cron_every_five_min(token: str = Security(get_token)):
if post and post.get("user"): if post and post.get("user"):
notified_post_user_ids.update({str(post["user"].get("_id")):1}) notified_post_user_ids.update({str(post["user"].get("_id")):1})
doc.pop('_id')
new_doc = { new_doc = {
**doc, **doc,
"exhibition": exhibition_to_start, "exhibition": exhibition_to_start,