From: Oleg Broytman Date: Sun, 6 Aug 2006 19:28:37 +0000 (+0000) Subject: Process only *.tmpl files. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=4fce7b9c6664994060352f38d4534716d955d488;p=phdru.name%2Fphdru.name.git Process only *.tmpl files. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@54 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- 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)