Forgot to remove robots from visitors in days statistics

This commit is contained in:
Grégory Soutadé 2014-12-15 08:21:46 +01:00
parent 59e234b9bf
commit caeab70ca6

View File

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