Store files in month directory
This commit is contained in:
@@ -22,11 +22,10 @@ class IWLADisplayTopHits(IPlugin):
|
||||
table.appendRow([uri, entrance])
|
||||
index.appendBlock(table)
|
||||
|
||||
cur_time = self.iwla.getCurTime()
|
||||
title = time.strftime('All Hits - %B %Y', cur_time)
|
||||
title = time.strftime('All Hits - %B %Y', self.iwla.getCurTime())
|
||||
|
||||
filename = 'top_hits_%d.html' % (cur_time.tm_mon)
|
||||
path = '%d/%s' % (cur_time.tm_year, filename)
|
||||
filename = 'top_hits.html'
|
||||
path = '%s/%s' % (self.iwla.getCurDisplayRoot(), filename)
|
||||
|
||||
page = DisplayHTMLPage(title, path)
|
||||
table = DisplayHTMLBlockTable('Top Hits', ['URI', 'Entrance'])
|
||||
|
||||
Reference in New Issue
Block a user