Add hit_to_page_conf in addition to page_to_hit_conf

This commit is contained in:
Grégory Soutadé
2014-11-27 13:46:58 +01:00
parent 5ccc63c7ae
commit c87ddfb1aa
5 changed files with 38 additions and 18 deletions

View File

@@ -29,7 +29,7 @@ class IWLADisplayTopDownloads(IPlugin):
path = '%d/%s' % (cur_time.tm_year, filename)
page = DisplayHTMLPage(title, path)
table = DisplayHTMLBlockTable('Top Downloads', ['URI', 'Hit'])
table = DisplayHTMLBlockTable('All Downloads', ['URI', 'Hit'])
for (uri, entrance) in top_downloads:
table.appendRow([uri, entrance])
page.appendBlock(table)

View File

@@ -23,7 +23,7 @@ class IWLADisplayTopPages(IPlugin):
index.appendBlock(table)
cur_time = self.iwla.getCurTime()
title = time.strftime('Top Pages - %B %Y', cur_time)
title = time.strftime('All Pages - %B %Y', cur_time)
filename = 'top_pages_%d.html' % (cur_time.tm_mon)
path = '%d/%s' % (cur_time.tm_year, filename)