fix
This commit is contained in:
parent
fcab4a8df9
commit
4e5303db36
@ -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",
|
||||||
|
|||||||
2
main.py
2
main.py
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user