From: Oleg Broytman Date: Fri, 8 Aug 2014 16:52:42 +0000 (+0400) Subject: Partially revert the previous patch X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fphdru.name.git;a=commitdiff_plain;h=b59767fc8b80d3feb32856a2aa3f6a5a10290b63 Partially revert the previous patch --- diff --git a/reindex_blog.py b/reindex_blog.py index b1bf4c6..33e9077 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -551,6 +551,8 @@ else: items = [] for item in tuple(reversed(all_titles_tags))[:10]: year, month, day, file, title, lead, tags = item + lead = lead.decode('koi8-r').encode('utf-8') + title = title.decode('koi8-r').encode('utf-8') url_path = "%s/%s/%s/%s" % (year, month, day, file) item = NewsItem( "%s-%s-%s" % (year, month, day),