7

Make the static segments work with match_any and fix bug in visit count

This commit is contained in:
Todd Dembrey
2017-10-24 10:50:05 +01:00
parent a116b14d57
commit 9e0fc8e6fd
4 changed files with 44 additions and 11 deletions

View File

@ -229,7 +229,7 @@ class VisitCountRule(AbstractBaseRule):
adapter = get_segment_adapter(request)
visit_count = adapter.get_visit_count()
visit_count = adapter.get_visit_count(self.counted_page)
if visit_count and operator == "more_than":
if visit_count > segment_count:
return True