Skip to content

Commit

Permalink
#339 fix short report in summary()
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Sep 14, 2018
1 parent 07089ed commit 03efb49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analyzers/DomainTools/domaintools_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def summary(self, raw):
"domain_count": sum(d["domain_count"] for d in raw["ip_addresses"])
}

if "record_count" in raw:
r["record_count"] = raw.get('record_count')

if "domain_count" in raw:
r["domain_count"] = {
"current": raw["domain_count"]["current"],
Expand Down Expand Up @@ -122,7 +125,7 @@ def summary(self, raw):

if r["service"] == "whois/history":
taxonomies.append(self.build_taxonomy("info", "DT", "Whois_History",
"{}, {} domains ".format(r["name_server"], r["domain_count"])))
"{} {}".format(r["record_count"], "records" if r["record_count"] > 1 else "record")))

if r["service"] == "whois/parsed" or r['service'] == "whois":
if r["registrar"]:
Expand Down

0 comments on commit 03efb49

Please sign in to comment.