]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Partially revert the previous patch
authorOleg Broytman <phd@phdru.name>
Fri, 8 Aug 2014 16:52:42 +0000 (20:52 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 23 Dec 2015 15:54:10 +0000 (18:54 +0300)
reindex_blog.py

index b1bf4c626e4e18b6cb27c483902921fbd0c80605..33e9077aefd0e6472959c3300d1f105ea59ef6b0 100755 (executable)
@@ -551,6 +551,8 @@ else:
 items = []
 for item in tuple(reversed(all_titles_tags))[:10]:
    year, month, day, file, title, lead, tags = item
 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),
    url_path = "%s/%s/%s/%s" % (year, month, day, file)
    item = NewsItem(
       "%s-%s-%s" % (year, month, day),