From 2aad389e2bc9348c140d7b0766fba069584e98d7 Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Thu, 10 Nov 2022 20:04:45 +0100 Subject: [PATCH] Fix message for all visits and top countries --- plugins/display/all_visits.py | 2 +- plugins/display/ip_to_geo.py | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/plugins/display/all_visits.py b/plugins/display/all_visits.py index b957213..05e23fd 100644 --- a/plugins/display/all_visits.py +++ b/plugins/display/all_visits.py @@ -67,7 +67,7 @@ class IWLADisplayAllVisits(IPlugin): path = self.iwla.getCurDisplayPath(filename) page = display.createPage(title, path, self.iwla.getConfValue('css_path', [])) - table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'Last seen'), [self.iwla._(u'Host'), self.iwla._(u'Pages'), self.iwla._(u'Hits'), self.iwla._(u'Bandwidth'), self.iwla._(u'Last seen')], [3]) + table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'All visits'), [self.iwla._(u'Host'), self.iwla._(u'Pages'), self.iwla._(u'Hits'), self.iwla._(u'Bandwidth'), self.iwla._(u'Last seen')], [3]) table.setColsCSSClass(['', 'iwla_page', 'iwla_hit', 'iwla_bandwidth', '']) for super_hit in last_access: diff --git a/plugins/display/ip_to_geo.py b/plugins/display/ip_to_geo.py index 6d27cd3..3ea84f3 100644 --- a/plugins/display/ip_to_geo.py +++ b/plugins/display/ip_to_geo.py @@ -24,8 +24,6 @@ from iwla import IWLA from iplugin import IPlugin from display import * -import awstats_data - """ Display hook @@ -50,11 +48,11 @@ Statistics deletion : None """ -class IWLADisplayTopGeo(IPlugin): +class IWLADisplayIPToGeo(IPlugin): def __init__(self, iwla): - super(IWLADisplayTopGeo, self).__init__(iwla) + super(IWLADisplayIPToGeo, self).__init__(iwla) self.API_VERSION = 1 - #self.requires = ['IWLAPostAnalysisIPToGeo'] + self.requires = ['IWLAPostAnalysisIPToGeo'] def load(self): self.icon_path = self.iwla.getConfValue('icon_path', '/') @@ -106,7 +104,7 @@ class IWLADisplayTopGeo(IPlugin): # Countries in index title = self.iwla._(u'Countries') if self.create_geo_page: - link = '%s' % (filename, self.iwla._(u'Details')) + link = '%s' % (filename, self.iwla._(u'All countries')) title = '%s - %s' % (title, link) index = self.iwla.getDisplayIndex()