From 2f6754514eb4110b105d64ed944c8a855858c408 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 25 Feb 2006 13:27:27 +0000 Subject: [PATCH] Fixed bugs. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@4 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- reindex_blog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reindex_blog.py b/reindex_blog.py index 43c4f8b..716605b 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -42,7 +42,7 @@ if not months: days = [] for month in months: year, m = month.split(os.sep) - if month not in years: + if year not in years: years[year] = {} years[year][m] = days_of_month = [] for day in os.listdir(month): @@ -200,7 +200,7 @@ $phd_pp_ru.respond(self) if old_text <> new_text: print "Writing", index_name index_tmpl = open(index_name, 'w') - index_tmpl.write(new_test) + index_tmpl.write(new_text) index_tmpl.close() -- 2.39.5