diff --git a/iwla.py b/iwla.py index 1e24f2e..d6cda8e 100755 --- a/iwla.py +++ b/iwla.py @@ -188,7 +188,7 @@ class IWLA(object): def getMonthStats(self): return self.current_analysis['month_stats'] - def getCurrentVisists(self): + def getCurrentVisits(self): return self.current_analysis['visits'] def getValidVisitors(self): diff --git a/plugins/display/feeds.py b/plugins/display/feeds.py index bcd7194..ca5de4e 100644 --- a/plugins/display/feeds.py +++ b/plugins/display/feeds.py @@ -62,7 +62,7 @@ class IWLADisplayFeeds(IPlugin): from plugins.post_analysis.feeds import IWLAPostAnalysisFeeds display = self.iwla.getDisplay() - hits = self.iwla.getCurrentVisists() + hits = self.iwla.getCurrentVisits() nb_feeds_parsers = 0 # All in a page diff --git a/plugins/display/track_users.py b/plugins/display/track_users.py index 53b7b9d..8c194f7 100644 --- a/plugins/display/track_users.py +++ b/plugins/display/track_users.py @@ -64,7 +64,7 @@ class IWLADisplayTrackUsers(IPlugin): def hook(self): display = self.iwla.getDisplay() - hits = self.iwla.getCurrentVisists() + hits = self.iwla.getCurrentVisits() stats = {} # All in a page diff --git a/plugins/post_analysis/feeds.py b/plugins/post_analysis/feeds.py index 8476881..570649f 100644 --- a/plugins/post_analysis/feeds.py +++ b/plugins/post_analysis/feeds.py @@ -85,7 +85,7 @@ class IWLAPostAnalysisFeeds(IPlugin): hit['feed_parser'] = isFeedParser def hook(self): - hits = self.iwla.getCurrentVisists() + hits = self.iwla.getCurrentVisits() one_hit_only = {} for hit in hits.values(): isFeedParser = hit.get('feed_parser', None) diff --git a/plugins/post_analysis/hours_stats.py b/plugins/post_analysis/hours_stats.py index a45dbdd..4ec9014 100644 --- a/plugins/post_analysis/hours_stats.py +++ b/plugins/post_analysis/hours_stats.py @@ -62,7 +62,7 @@ class IWLAPostAnalysisHoursStats(IPlugin): self.API_VERSION = 1 def hook(self): - stats = self.iwla.getCurrentVisists() + stats = self.iwla.getCurrentVisits() month_stats = self.iwla.getMonthStats() hours_stats = month_stats.get('hours_stats', {}) diff --git a/plugins/post_analysis/referers.py b/plugins/post_analysis/referers.py index 619963f..aeceb8a 100644 --- a/plugins/post_analysis/referers.py +++ b/plugins/post_analysis/referers.py @@ -120,7 +120,7 @@ class IWLAPostAnalysisReferers(IPlugin): break def hook(self): - stats = self.iwla.getCurrentVisists() + stats = self.iwla.getCurrentVisits() month_stats = self.iwla.getMonthStats() referers = month_stats.get('referers', {}) diff --git a/plugins/post_analysis/reverse_dns.py b/plugins/post_analysis/reverse_dns.py index b94a8cb..8b04784 100644 --- a/plugins/post_analysis/reverse_dns.py +++ b/plugins/post_analysis/reverse_dns.py @@ -64,7 +64,7 @@ class IWLAPostAnalysisReverseDNS(IPlugin): return True def hook(self): - hits = self.iwla.getCurrentVisists() + hits = self.iwla.getCurrentVisits() for (k, hit) in hits.items(): if hit.get('dns_analysed', False): continue if not hit['feed_parser'] and\ diff --git a/plugins/post_analysis/top_hits.py b/plugins/post_analysis/top_hits.py index 8006aa7..bc16ddc 100644 --- a/plugins/post_analysis/top_hits.py +++ b/plugins/post_analysis/top_hits.py @@ -53,7 +53,7 @@ class IWLAPostAnalysisTopHits(IPlugin): self.API_VERSION = 1 def hook(self): - stats = self.iwla.getCurrentVisists() + stats = self.iwla.getCurrentVisits() month_stats = self.iwla.getMonthStats() top_hits = month_stats.get('top_hits', {}) diff --git a/plugins/post_analysis/top_pages.py b/plugins/post_analysis/top_pages.py index 37db81d..1e649d3 100644 --- a/plugins/post_analysis/top_pages.py +++ b/plugins/post_analysis/top_pages.py @@ -59,7 +59,7 @@ class IWLAPostAnalysisTopPages(IPlugin): return True def hook(self): - stats = self.iwla.getCurrentVisists() + stats = self.iwla.getCurrentVisits() month_stats = self.iwla.getMonthStats() top_pages = month_stats.get('top_pages', {}) diff --git a/plugins/pre_analysis/page_to_hit.py b/plugins/pre_analysis/page_to_hit.py index 282f53f..9d8765b 100644 --- a/plugins/pre_analysis/page_to_hit.py +++ b/plugins/pre_analysis/page_to_hit.py @@ -69,7 +69,7 @@ class IWLAPreAnalysisPageToHit(IPlugin): return True def hook(self): - hits = self.iwla.getCurrentVisists() + hits = self.iwla.getCurrentVisits() for (k, super_hit) in hits.items(): if super_hit['robot']: continue diff --git a/plugins/pre_analysis/robots.py b/plugins/pre_analysis/robots.py index d84087d..6f89bb3 100644 --- a/plugins/pre_analysis/robots.py +++ b/plugins/pre_analysis/robots.py @@ -76,7 +76,7 @@ class IWLAPreAnalysisRobots(IPlugin): # Basic rule to detect robots def hook(self): - hits = self.iwla.getCurrentVisists() + hits = self.iwla.getCurrentVisits() for (k, super_hit) in hits.items(): if super_hit['robot']: self.logger.debug('%s is a robot' % (k))