mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-14 12:06:06 +00:00
Update README and LGTM fixes
This commit is contained in:
@ -49,7 +49,7 @@ def create_app(config=None):
|
||||
# HSTS
|
||||
if app.config.get('HSTS_ENABLED'):
|
||||
from flask_sslify import SSLify
|
||||
_sslify = SSLify(app) # lgtm [py/unused-import]
|
||||
_sslify = SSLify(app) # lgtm [py/unused-local-variable]
|
||||
|
||||
# Load app's components
|
||||
assets.init_app(app)
|
||||
|
@ -131,7 +131,7 @@ def api_basic_auth(f):
|
||||
abort(401)
|
||||
else:
|
||||
user = User.query.filter(User.username == username).first()
|
||||
current_user = user
|
||||
current_user = user # lgtm [py/unused-local-variable]
|
||||
except Exception as e:
|
||||
current_app.logger.error('Error: {0}'.format(e))
|
||||
abort(401)
|
||||
|
@ -20,4 +20,4 @@ from .record_entry import RecordEntry
|
||||
|
||||
def init_app(app):
|
||||
db.init_app(app)
|
||||
_migrate = Migrate(app, db) # lgtm [py/unused-import]
|
||||
_migrate = Migrate(app, db) # lgtm [py/unused-local-variable]
|
||||
|
@ -287,8 +287,7 @@ class Domain(db.Model):
|
||||
account_id = None
|
||||
# add new domain
|
||||
d = Domain()
|
||||
d.name = domain['name'].rstrip(
|
||||
'.') # lgtm [py/modification-of-default-value]
|
||||
d.name = domain['name'].rstrip('.') # lgtm [py/modification-of-default-value]
|
||||
d.master = str(domain['masters'])
|
||||
d.type = domain['kind']
|
||||
d.serial = domain['serial']
|
||||
|
Reference in New Issue
Block a user