Skip to content

Commit

Permalink
fixed issue with adding boolean results to results
Browse files Browse the repository at this point in the history
  • Loading branch information
jekyc committed Feb 17, 2014
1 parent f56f1f0 commit 7518fc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def add(self, category, plugin, data, weight=True):
v = data['version']
dw = data['count']

if type(v) == bool: v = ""

if type(weight) == bool:
w = 1.0/dw if weight else dw
self.results[category][plugin][v] += w
Expand Down

0 comments on commit 7518fc1

Please sign in to comment.