portal: update for jinja2 >= 3.0.1
This commit is contained in:
parent
ac72cd7426
commit
09c418575b
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ from typing import Optional
|
|||
|
||||
from flask import Blueprint, render_template, request
|
||||
from flask.typing import ResponseReturnValue
|
||||
from jinja2.markupsafe import Markup
|
||||
from jinja2.utils import markupsafe
|
||||
from sqlalchemy import desc, or_
|
||||
|
||||
from app.alarms import alarms_for
|
||||
|
@ -72,7 +72,7 @@ def describe_brn(s: str) -> ResponseReturnValue:
|
|||
).first()
|
||||
if not proxy:
|
||||
return s
|
||||
return Markup( # type: ignore[no-untyped-call]
|
||||
return markupsafe.Markup( # type: ignore[no-untyped-call]
|
||||
f"Proxy: {proxy.url}<br>({proxy.origin.group.group_name}: {proxy.origin.domain_name})")
|
||||
if parts[5].startswith("quota/"):
|
||||
if parts[4] == "cloudfront":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue