Lint: E402 module level import not at top of file

This commit is contained in:
2020-11-06 20:39:18 -05:00
parent aecb845d6a
commit 98a573bbc7
3 changed files with 6 additions and 7 deletions

View File

@ -36,6 +36,8 @@ import pvcapid.ova as api_ova
from flask_sqlalchemy import SQLAlchemy
from pvcapid.models import *
API_VERSION = 1.0
def strtobool(stringv):
@ -125,9 +127,6 @@ if config['auth_enabled']:
# Create SQLAlchemy database
db = SQLAlchemy(app)
# Import database models
from pvcapid.models import *
# Create Flask blueprint
blueprint = flask.Blueprint('api', __name__, url_prefix='/api/v1')