Sort years in reverse order for main index.html

This commit is contained in:
Grégory Soutadé 2014-12-15 22:30:17 +01:00
parent 4d4fcf4075
commit ba5bd75ac1

View File

@ -437,7 +437,7 @@ class IWLA(object):
last_update = '<b>Last update</b> %s<br />' % (time.strftime('%02d %b %Y %H:%M', time.localtime()))
page.appendBlock(self.display.createBlock(DisplayHTMLRaw, last_update))
for year in self.meta_infos['stats'].keys():
for year in sorted(self.meta_infos['stats'].keys(), reverse=True):
self._generateDisplayMonthStats(page, year, self.meta_infos['stats'][year])
self.display.addPage(page)