Call pre analysis hook on display only mode
This commit is contained in:
parent
975cc66bd5
commit
ff57e5a90a
10
iwla.py
10
iwla.py
|
@ -200,6 +200,10 @@ class IWLA(object):
|
|||
def getCurrentVisits(self):
|
||||
return self.current_analysis['visits']
|
||||
|
||||
def getSortedCurrentVisits(self):
|
||||
visits = self.current_analysis['visits'].values()
|
||||
return sorted(visits, key=lambda hit: hit['last_access'])
|
||||
|
||||
def getValidVisitors(self):
|
||||
return self.valid_visitors
|
||||
|
||||
|
@ -674,14 +678,10 @@ class IWLA(object):
|
|||
self._generateDisplay()
|
||||
|
||||
def _generateDayStats(self):
|
||||
if args.display_only:
|
||||
return
|
||||
self._callPlugins(conf.PRE_HOOK_DIRECTORY)
|
||||
|
||||
visits = self.current_analysis['visits']
|
||||
cur_time = self.meta_infos['last_time']
|
||||
|
||||
self._callPlugins(conf.PRE_HOOK_DIRECTORY)
|
||||
|
||||
stats = self._createEmptyStats()
|
||||
|
||||
day = cur_time.tm_mday
|
||||
|
|
Loading…
Reference in New Issue
Block a user