mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(fastapi): fix /account/{username} page title
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
691b7b9091
commit
348128fada
1 changed files with 2 additions and 1 deletions
|
@ -612,7 +612,8 @@ account_template = (
|
||||||
status_code=HTTPStatus.UNAUTHORIZED)
|
status_code=HTTPStatus.UNAUTHORIZED)
|
||||||
async def account(request: Request, username: str):
|
async def account(request: Request, username: str):
|
||||||
_ = l10n.get_translator_for_request(request)
|
_ = l10n.get_translator_for_request(request)
|
||||||
context = await make_variable_context(request, _("Account") + username)
|
context = await make_variable_context(request,
|
||||||
|
_("Account") + " " + username)
|
||||||
|
|
||||||
user = db.query(models.User, models.User.Username == username).first()
|
user = db.query(models.User, models.User.Username == username).first()
|
||||||
if not user:
|
if not user:
|
||||||
|
|
Loading…
Add table
Reference in a new issue