From 4363c90197b86cab6e64235fe1c74ec1a65da65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 18 Dec 2014 07:46:12 +0100 Subject: [PATCH] Bug in valid visitor creation and count_hit_only_visitors --- iwla.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iwla.py b/iwla.py index 7a43ceb..4bfb630 100755 --- a/iwla.py +++ b/iwla.py @@ -520,8 +520,8 @@ class IWLA(object): self.valid_visitors = {} for (k,v) in visits.items(): if v['robot']: continue - if conf.count_hit_only_visitors and\ - (not v['viewed_pages']): + if not (conf.count_hit_only_visitors or\ + v['viewed_pages']): continue self.valid_visitors[k] = v