hotfix
This commit is contained in:
parent
1cd372d318
commit
929f688c85
@ -591,6 +591,7 @@
|
|||||||
" \"receiver\": sender,\n",
|
" \"receiver\": sender,\n",
|
||||||
" \"sender\": doc.get(\"receiver\"),\n",
|
" \"sender\": doc.get(\"receiver\"),\n",
|
||||||
" }\n",
|
" }\n",
|
||||||
|
" new_doc.pop('_id')\n",
|
||||||
"\n",
|
"\n",
|
||||||
" await delivery_collection.update_one(\n",
|
" await delivery_collection.update_one(\n",
|
||||||
" {**prod_filter, \"status\": \"Возврат художнику\", \"post_id\": post_id, \"exhibition_id\": exhibition_id},\n",
|
" {**prod_filter, \"status\": \"Возврат художнику\", \"post_id\": post_id, \"exhibition_id\": exhibition_id},\n",
|
||||||
|
|||||||
1
main.py
1
main.py
@ -379,6 +379,7 @@ async def cron_every_five_min(token: str = Security(get_token)):
|
|||||||
"receiver": sender,
|
"receiver": sender,
|
||||||
"sender": doc.get("receiver"),
|
"sender": doc.get("receiver"),
|
||||||
}
|
}
|
||||||
|
new_doc.pop('_id')
|
||||||
|
|
||||||
await delivery_collection.update_one(
|
await delivery_collection.update_one(
|
||||||
{**prod_filter, "status": "Возврат художнику", "post_id": post_id, "exhibition_id": exhibition_id},
|
{**prod_filter, "status": "Возврат художнику", "post_id": post_id, "exhibition_id": exhibition_id},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user