]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - reindex_blog.py
Fixed a bug in baseURL - the directory must be ended with a slash for urljoin().
[phdru.name/phdru.name.git] / reindex_blog.py
index a4667b01c56edd9901d9fda68f383c80b3b0d647..b422784b960c85c9721b3eec07fa57f81d4d5057 100755 (executable)
@@ -389,7 +389,10 @@ from atom_10 import atom_10
 from rss_20 import rss_20
 from news import NewsItem
 
-baseURL = "http://phd.pp.ru/" + blog_root
+if blog_root:
+   baseURL = "http://phd.pp.ru/%s/" % blog_root
+else:
+   baseURL = "http://phd.pp.ru/"
 
 items = []
 for item in tuple(reversed(all_titles_tags))[:10]: