hotfix
This commit is contained in:
parent
98dcb0bc84
commit
499cee7277
@ -1631,7 +1631,7 @@
|
||||
" ])\n",
|
||||
" posts = [doc async for doc in cursor if doc.get('status') == 'На выставке']\n",
|
||||
" return templates.TemplateResponse(\n",
|
||||
" request=request, name=\"exhibition/index.html\", context={\"id\": 1, \"user\": user, \"exhibition\": exhibition, \"posts\": posts}\n",
|
||||
" request=request, name=\"exhibition/index.html\", context={\"id\": 1, \"user\": user, \"exhibition\": exhibition, \"posts\": posts, 'now': datetime.now()}\n",
|
||||
" )\n",
|
||||
" else:\n",
|
||||
" raise HTTPException(status_code=307, headers={\"Location\": '/competitions'}, detail=\"Конкурс не найден\")"
|
||||
|
||||
2
main.py
2
main.py
@ -1218,7 +1218,7 @@ async def exhibition_members(
|
||||
])
|
||||
posts = [doc async for doc in cursor if doc.get('status') == 'На выставке']
|
||||
return templates.TemplateResponse(
|
||||
request=request, name="exhibition/index.html", context={"id": 1, "user": user, "exhibition": exhibition, "posts": posts}
|
||||
request=request, name="exhibition/index.html", context={"id": 1, "user": user, "exhibition": exhibition, "posts": posts, 'now': datetime.now()}
|
||||
)
|
||||
else:
|
||||
raise HTTPException(status_code=307, headers={"Location": '/competitions'}, detail="Конкурс не найден")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user