This commit is contained in:
Iain Learmonth 2023-01-21 15:15:07 +00:00
parent 6df0083842
commit 10ffdff2c3
14 changed files with 46 additions and 16 deletions

View file

@ -95,10 +95,10 @@ def describe_brn(s: str) -> ResponseReturnValue:
@portal.app_template_filter("pretty_json")
def pretty_json(input: Optional[str]) -> str:
if not input:
def pretty_json(json_str: Optional[str]) -> str:
if not json_str:
return "None"
return json.dumps(json.loads(input), indent=2)
return json.dumps(json.loads(json_str), indent=2)
def total_origins_blocked() -> int: