mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-15 04:26:05 +00:00
Update README and LGTM fixes
This commit is contained in:
@ -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