From 1761b6e346d7596deac2dc9eb5f0956046ee2943 Mon Sep 17 00:00:00 2001
From: Oleg Broytman
Date: Sat, 17 Nov 2007 22:20:06 +0000
Subject: [PATCH] I started the blog in 2005.
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@73 7bb0bf08-9e0d-0410-b083-99cee3bf18b8
---
reindex_blog.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/reindex_blog.py b/reindex_blog.py
index 29d58d5..7fbf9ed 100755
--- a/reindex_blog.py
+++ b/reindex_blog.py
@@ -84,7 +84,6 @@ if blog <> old_blog:
pickle.dump(blog, blog_file, pickle.HIGHEST_PROTOCOL)
blog_file.close()
-
# Localized month names
import locale
@@ -250,11 +249,14 @@ def write_template(level, year, month, day, titles, tags=None):
''')
+ max_year = int(sorted(years.keys())[-1])
+ years = range(2005, max_year+1)
+
new_text.append('''
ðÏ ÇÏÄÁÍ:
''')
first_year = True
- for year in sorted(years.keys()):
+ for year in years:
if first_year:
first_year = False
else:
--
2.39.5