hotfix
This commit is contained in:
parent
01161efec6
commit
1cd372d318
@ -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",
|
||||
|
||||
2
main.py
2
main.py
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user