From: Oleg Broytman Date: Sun, 1 Oct 2006 09:55:06 +0000 (+0000) Subject: Fixed a bug in baseURL - the directory must be ended with a slash for urljoin(). X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f9027abe8ceccf5b0ed4e6e46d5c91c42449bc28;p=phdru.name%2Fphdru.name.git Fixed a bug in baseURL - the directory must be ended with a slash for urljoin(). git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@58 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/reindex_blog.py b/reindex_blog.py index a4667b0..b422784 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -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]: