]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
List years in reverse order.
authorOleg Broytman <phd@phdru.name>
Wed, 8 Dec 2010 12:26:36 +0000 (12:26 +0000)
committerOleg Broytman <phd@phdru.name>
Wed, 8 Dec 2010 12:26:36 +0000 (12:26 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@116 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

reindex_blog.py

index beba7c12823ae151a8f5de6619c9776758b9d713..cc9a540a5d103631d953f0842e22837bea9b038a 100755 (executable)
@@ -258,7 +258,7 @@ def write_template(level, year, month, day, titles, tags=None):
 ''')
 
       max_year = int(sorted(years.keys())[-1])
-      years = range(2005, max_year+1)
+      years = range(max_year, 2005, -1)
 
       new_text.append('''
 <p class="head">По годам: