This commit is contained in:
vladislav 2026-09-03 06:23:40 -04:00
parent 01161efec6
commit 1cd372d318
Signed by: Vladislav
GPG Key ID: D97C9E5E4860EE45
2 changed files with 2 additions and 2 deletions

View File

@ -577,7 +577,7 @@
" {\"$sort\": {\"_id\": -1}},\n",
" ])\n",
"\n",
" data = [doc async for doc in cursor if doc.status == 'На выставке']\n",
" data = [doc async for doc in cursor if doc.get('status') == 'На выставке']\n",
" for doc in data:\n",
" sender = doc.get(\"sender\")\n",
" post_id = doc.get(\"post_id\")\n",

View File

@ -365,7 +365,7 @@ async def cron_every_five_min(token: str = Security(get_token)):
{"$sort": {"_id": -1}},
])
data = [doc async for doc in cursor if doc.status == 'На выставке']
data = [doc async for doc in cursor if doc.get('status') == 'На выставке']
for doc in data:
sender = doc.get("sender")
post_id = doc.get("post_id")