lint
This commit is contained in:
parent
6df0083842
commit
10ffdff2c3
14 changed files with 46 additions and 16 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue