Plugins management seems ok

This commit is contained in:
Gregory Soutade
2014-11-22 19:23:56 +01:00
parent db84036d8a
commit 38c041126d
3 changed files with 21 additions and 8 deletions

View File

@@ -17,6 +17,11 @@ def load():
def hook(iwla):
stats = iwla.getMonthStats()
if not 'top_visitors' in stats.keys():
print 'Top visitors post analysis plugin not installed'
return
index = iwla.getDisplayIndex()
table = DisplayHTMLBlockTable('Top visitors', ['Host', 'Pages', 'Hits', 'Bandwidth', 'Last seen'])
for super_hit in stats['top_visitors']: