domtools
Raphaël Vinot 2016-12-01 12:14:16 +01:00
parent 6db5436c62
commit 9dbd241e63
1 changed files with 6 additions and 6 deletions

View File

@ -61,19 +61,19 @@ class DomainTools(object):
to_return = []
if self.reg_mail:
for mail, comment in self.reg_mail.items():
to_return.append({'type': ['whois-registrant-email'], 'values': [mail], 'comment': comment or ''})
to_return.append({'types': ['whois-registrant-email'], 'values': [mail], 'comment': comment or ''})
if self.reg_phone:
for phone, comment in self.reg_phone.items():
to_return.append({'type': ['whois-registrant-phone'], 'values': [phone], 'comment': comment or ''})
to_return.append({'types': ['whois-registrant-phone'], 'values': [phone], 'comment': comment or ''})
if self.reg_name:
for name, comment in self.reg_name.items():
to_return.append({'type': ['whois-registrant-name'], 'values': [name], 'comment': comment or ''})
to_return.append({'types': ['whois-registrant-name'], 'values': [name], 'comment': comment or ''})
if self.registrar:
to_return.append({'type': ['whois-registrar'], 'values': list(self.registrar)})
to_return.append({'types': ['whois-registrar'], 'values': list(self.registrar)})
if self.creation_date:
to_return.append({'type': ['whois-creation-date'], 'values': list(self.creation_date)})
to_return.append({'types': ['whois-creation-date'], 'values': list(self.creation_date)})
if self.freetext:
to_return.append({'type': ['freetext'], 'values': [self.freetext], 'comment': 'Freetext import'})
to_return.append({'types': ['freetext'], 'values': [self.freetext], 'comment': 'Freetext import'})
return to_return