fix
This commit is contained in:
parent
fe8a036f06
commit
cf9f6b4c99
@ -4601,7 +4601,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" data = [doc async for doc in cursor]\n",
|
" data = [doc async for doc in cursor]\n",
|
||||||
" exhibitions = await exhibition_collection.find({'_id': {'$in': [ObjectId(i.get('exhibition_id')) for i in data if i.get('exhibition_id')]}}).to_list()\n",
|
" exhibitions = await exhibition_collection.find({'_id': {'$in': [ObjectId(i.get('exhibition_id')) for i in data if i.get('exhibition_id')]}}).to_list()\n",
|
||||||
" competitions = await competitions_col.find({'_id': {'$in': [i.get('competitions') for i in data if i.get('competitions')]}}).to_list()\n",
|
" competitions = await competitions_col.find({'_id': {'$in': [i.get('competition_id') for i in data if i.get('competition_id')]}}).to_list()\n",
|
||||||
" return templates.TemplateResponse(\n",
|
" return templates.TemplateResponse(\n",
|
||||||
" request=request,\n",
|
" request=request,\n",
|
||||||
" name=\"profile/delivery.html\",\n",
|
" name=\"profile/delivery.html\",\n",
|
||||||
|
|||||||
2
main.py
2
main.py
@ -3505,7 +3505,7 @@ async def profile_delivery(
|
|||||||
|
|
||||||
data = [doc async for doc in cursor]
|
data = [doc async for doc in cursor]
|
||||||
exhibitions = await exhibition_collection.find({'_id': {'$in': [ObjectId(i.get('exhibition_id')) for i in data if i.get('exhibition_id')]}}).to_list()
|
exhibitions = await exhibition_collection.find({'_id': {'$in': [ObjectId(i.get('exhibition_id')) for i in data if i.get('exhibition_id')]}}).to_list()
|
||||||
competitions = await competitions_col.find({'_id': {'$in': [i.get('competitions') for i in data if i.get('competitions')]}}).to_list()
|
competitions = await competitions_col.find({'_id': {'$in': [i.get('competition_id') for i in data if i.get('competition_id')]}}).to_list()
|
||||||
return templates.TemplateResponse(
|
return templates.TemplateResponse(
|
||||||
request=request,
|
request=request,
|
||||||
name="profile/delivery.html",
|
name="profile/delivery.html",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user