Skip to content

Commit

Permalink
#56 fix bugs in summary()
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 16, 2017
1 parent 8ebcb36 commit d0036cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions analyzers/GoogleSafebrowsing/safebrowsing_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ def summary(self, raw):
taxonomy["value"] = "\"{} match\"".format(r)
else:
taxonomy["value"] = "\"{} matches\"".format(r)

if r > 0:
taxonomy["level"] = "malicious"
# level : info, safe, suspicious, malicious

taxonomies.append(taxonomy)
taxonomies.append(taxonomy)

result = {"taxonomies": taxonomies}
return result

Expand Down

0 comments on commit d0036cd

Please sign in to comment.