Update README and LGTM fixes

This commit is contained in:
Khanh Ngo
2019-12-08 18:23:36 +07:00
parent 354383f0ec
commit c1fae6f3dd
5 changed files with 8 additions and 13 deletions

View File

@ -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]

View File

@ -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']