LGTM fixes. Remove unused import and variables

This commit is contained in:
Khanh Ngo
2019-12-07 20:20:40 +07:00
parent 53a7545ccc
commit 6af94df00a
13 changed files with 29 additions and 29 deletions

View File

@ -287,7 +287,8 @@ class Domain(db.Model):
account_id = None
# add new domain
d = Domain()
d.name = domain['name'].rstrip('.')
d.name = domain['name'].rstrip(
'.') # lgtm [py/modification-of-default-value]
d.master = str(domain['masters'])
d.type = domain['kind']
d.serial = domain['serial']