]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - reindex_blog.py
TODO: проставить в блоге ссылки на пред./след. посты
[phdru.name/phdru.name.git] / reindex_blog.py
index bb315179cf75f8c90ba4d508094b486b9f3da4ee..33e9077aefd0e6472959c3300d1f105ea59ef6b0 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- coding: koi8-r -*-
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2006-2013 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2006-2014 PhiloSoft Design"
 
 import sys, os
 
@@ -563,7 +563,6 @@ for item in tuple(reversed(all_titles_tags))[:10]:
    item.categoryList = tags
    body = bodies[(year, month, day, file)]
    body = absolute_urls(body, baseURL + url_path)
-   body = body.decode('koi8-r').encode('utf-8')
    item.body = body
    item.excerpt = get_first_p(body)