From caeab70ca627c5b2a9da06c238be1c10d94cd05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Mon, 15 Dec 2014 08:21:46 +0100 Subject: [PATCH] Forgot to remove robots from visitors in days statistics --- iwla.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iwla.py b/iwla.py index 42f5f2c..5a20786 100755 --- a/iwla.py +++ b/iwla.py @@ -533,7 +533,8 @@ class IWLA(object): else: stats['viewed_hits'] += 1 if (conf.count_hit_only_visitors or\ - viewed_pages): + viewed_pages) and\ + not super_hit['robot']: stats['nb_visitors'] += 1 print "== Stats for %d/%02d/%d ==" % (cur_time.tm_year, cur_time.tm_mon, cur_time.tm_mday)