From f9027abe8ceccf5b0ed4e6e46d5c91c42449bc28 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 1 Oct 2006 09:55:06 +0000 Subject: [PATCH] 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 --- reindex_blog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]: -- 2.39.5