From 4b8b0922c4b688f28083fee6d21444ddd76e563a Mon Sep 17 00:00:00 2001 From: Elizabeth Krumbach Joseph Date: Fri, 28 Mar 2014 12:59:29 -0700 Subject: [PATCH] Recreate index.html with each run Regardless of whether the index.html already exists, create a new one with each run so any template changes are picked up. Change-Id: I3d39924bddfe8b8ad053d36cbf3b41ae21110972 --- bugdaystats.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bugdaystats.py b/bugdaystats.py index 19428d7..0ed64d5 100755 --- a/bugdaystats.py +++ b/bugdaystats.py @@ -27,10 +27,9 @@ def create_files(templatepath, outputpath, projects): # Create index file env = Environment(loader=FileSystemLoader(templatepath)) indexfile = os.path.join(outputpath, "index.html") - if not os.path.exists(indexfile): - template = env.get_template('index.html') - template.stream(projects=projects, - openstack_status=openstack_status).dump(indexfile) + template = env.get_template('index.html') + template.stream(projects=projects, + openstack_status=openstack_status).dump(indexfile) # Create each project file for project in projects: