Add hit_to_page_conf in addition to page_to_hit_conf
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user