Lint: E402 module level import not at top of file
This commit is contained in:
@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user