Remove browser condition for filter users Geo IP

This commit is contained in:
Gregory Soutade 2022-11-10 20:04:56 +01:00
parent 2aad389e2b
commit b93c4bf470

View File

@ -83,11 +83,10 @@ class IWLADisplayFilterUsers(IPlugin):
ip_title = ip ip_title = ip
if 'dns_name_replaced' in hits[ip].keys(): if 'dns_name_replaced' in hits[ip].keys():
ip_title = '%s [%s]' % (hits[ip]['remote_addr'], ip) ip_title = '%s [%s]' % (hits[ip]['remote_addr'], ip)
if filtered_user.get('operating_system', 'android') not in ('android', 'ios_iphone'): location = filtered_user.get('geo_location', {})
location = filtered_user.get('geo_location', {}) if location:
if location: location_str = '(%s/%s)' % (location.get('city', unknown), location.get('countryname', unknown))
location_str = '(%s/%s)' % (location.get('city', unknown), location.get('countryname', unknown)) ip_title = f'{ip_title}<br/>{location_str}'
ip_title = f'{ip_title}<br/>{location_str}'
table.appendRow([f'<b>{ip_title}</b>', '', '']) table.appendRow([f'<b>{ip_title}</b>', '', ''])
table.setCellCSSClass(row, 0, '') table.setCellCSSClass(row, 0, '')
for r in hits[ip]['requests'][::-1]: for r in hits[ip]['requests'][::-1]: