Bug in valid visitor creation and count_hit_only_visitors

This commit is contained in:
Grégory Soutadé 2014-12-18 07:46:12 +01:00
parent a74a6b8469
commit 4363c90197

View File

@ -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