lint
This commit is contained in:
parent
2e3fe165ef
commit
4c32445aff
2 changed files with 3 additions and 4 deletions
|
@ -5,7 +5,6 @@ from typing import Optional
|
|||
from flask import Blueprint, render_template, request, url_for, redirect
|
||||
from flask.typing import ResponseReturnValue
|
||||
from jinja2.utils import markupsafe
|
||||
from markupsafe import Markup
|
||||
from sqlalchemy import desc, or_, func
|
||||
|
||||
from app.alarms import alarms_for
|
||||
|
@ -96,7 +95,7 @@ def describe_brn(s: str) -> ResponseReturnValue:
|
|||
|
||||
|
||||
@portal.app_template_filter("pretty_json")
|
||||
def pretty_json(input: Optional[str]):
|
||||
def pretty_json(input: Optional[str]) -> str:
|
||||
if not input:
|
||||
return "None"
|
||||
return json.dumps(json.loads(input), indent=2)
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
from datetime import datetime
|
||||
from typing import Optional
|
||||
|
||||
from flask import render_template, flash, Response, Blueprint, current_app
|
||||
from flask import render_template, flash, Response, Blueprint
|
||||
from flask.typing import ResponseReturnValue
|
||||
from flask_wtf import FlaskForm
|
||||
from sqlalchemy import exc
|
||||
from wtforms import SubmitField, BooleanField
|
||||
|
||||
from app.extensions import db
|
||||
from app.models.automation import Automation, AutomationLogs
|
||||
from app.models.automation import Automation
|
||||
from app.models.tfstate import TerraformState
|
||||
from app.portal.util import view_lifecycle, response_404
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue