$def with (visitors, total, unique, logfilter)
$var visitors = visitors
$var total = total
$var unique = unique
$ show = False
$ count = 0
$for i in visitors:
$if logfilter == 'bots':
$for f in filters:
$if f in i['environ']:
$ show = False
$ break
$else:
$ show = True
$if show == True:

| $i['country'] | $i['ip'] | $i['referer'] | $i['environ'] | $i['time']
$ count = count + 1
$ show = False
$elif logfilter == 'botsandme':
$for f in filters:
$if f in i['environ']:
$ show = False
$ break
$else:
$ show = True
$for ip in ip_filters:
$if ip in i['ip']:
$ show = False
$ break
$else:
$ show = True
$if show == True:

| $i['country'] | $i['ip'] | $i['referer'] | $i['environ'] | $i['time']
$ count = count + 1
$ show = False
$else:

| $i['country'] | $i['ip'] | $i['referer'] | $i['environ'] | $i['time']
$ count = count + 1
total potential real visitors
$count