Skip to content

Commit

Permalink
Almost broke the universe
Browse files Browse the repository at this point in the history
  • Loading branch information
jberghoef committed Aug 25, 2017
1 parent 7dfb8d6 commit a823c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wagtail_personalisation/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def description(self):
def hit_percentage(self):
percentage = round(Decimal(
(self.hit_count / self.visit_count) * 100
), 2)
), 2) if self.hit_count > 0 else 0
return '%d' % percentage

@property
Expand Down

0 comments on commit a823c0f

Please sign in to comment.