From 4fce7b9c6664994060352f38d4534716d955d488 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 6 Aug 2006 19:28:37 +0000 Subject: [PATCH] Process only *.tmpl files. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@54 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- reindex_blog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reindex_blog.py b/reindex_blog.py index 3a18965..24db91d 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -44,8 +44,7 @@ for dirpath, dirs, files in os.walk(blog_root): if not d.startswith("20") and not d.isdigit(): continue for file in files: - # Ignore index.tmpl and *.html files; supose all other files are *.tmpl - if file == "index.tmpl" or file.endswith(".html"): + if not file.endswith(".tmpl"): continue fullpath = os.path.join(dirpath, file) template = Template(file=fullpath) -- 2.39.5