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):
|
def getCurrentVisits(self):
|
||||||
return self.current_analysis['visits']
|
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):
|
def getValidVisitors(self):
|
||||||
return self.valid_visitors
|
return self.valid_visitors
|
||||||
|
|
||||||
|
@ -674,14 +678,10 @@ class IWLA(object):
|
||||||
self._generateDisplay()
|
self._generateDisplay()
|
||||||
|
|
||||||
def _generateDayStats(self):
|
def _generateDayStats(self):
|
||||||
if args.display_only:
|
self._callPlugins(conf.PRE_HOOK_DIRECTORY)
|
||||||
return
|
|
||||||
|
|
||||||
visits = self.current_analysis['visits']
|
visits = self.current_analysis['visits']
|
||||||
cur_time = self.meta_infos['last_time']
|
cur_time = self.meta_infos['last_time']
|
||||||
|
|
||||||
self._callPlugins(conf.PRE_HOOK_DIRECTORY)
|
|
||||||
|
|
||||||
stats = self._createEmptyStats()
|
stats = self._createEmptyStats()
|
||||||
|
|
||||||
day = cur_time.tm_mday
|
day = cur_time.tm_mday
|
||||||
|
|
Loading…
Reference in New Issue
Block a user