Fix typo error in getCurrentVisits() method name
This commit is contained in:
parent
992c3cee93
commit
79da471398
2
iwla.py
2
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):
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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', {})
|
||||
|
|
|
@ -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', {})
|
||||
|
|
|
@ -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\
|
||||
|
|
|
@ -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', {})
|
||||
|
|
|
@ -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', {})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user