From: Oleg Broytman Date: Sat, 25 Feb 2006 13:27:27 +0000 (+0000) Subject: Fixed bugs. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2f6754514eb4110b105d64ed944c8a855858c408;p=phdru.name%2Fphdru.name.git Fixed bugs. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@4 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- 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()