]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Process only *.tmpl files.
authorOleg Broytman <phd@phdru.name>
Sun, 6 Aug 2006 19:28:37 +0000 (19:28 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 6 Aug 2006 19:28:37 +0000 (19:28 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@54 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

reindex_blog.py

index 3a189657b581de59c5bbaf373acfb8a371bdde60..24db91d16539b0f01cf43c1d295ffc23c4febba7 100755 (executable)
@@ -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)