Pārlūkot izejas kodu

Always overwrite static files.

Just in case they have been updated.
Heikki Hokkanen 17 gadus atpakaļ
vecāks
revīzija
80fad3b7b4
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2
    3
      gitstats

+ 2
- 3
gitstats Parādīt failu

@@ -438,9 +438,8 @@ class HTMLReportCreator(ReportCreator):
438 438
 
439 439
 		# copy static files if they do not exist
440 440
 		for file in ('gitstats.css', 'sortable.js', 'arrow-up.gif', 'arrow-down.gif', 'arrow-none.gif'):
441
-			if not os.path.exists(path + '/' + file):
442
-				basedir = os.path.dirname(os.path.abspath(__file__))
443
-				shutil.copyfile(basedir + '/' + file, path + '/' + file)
441
+			basedir = os.path.dirname(os.path.abspath(__file__))
442
+			shutil.copyfile(basedir + '/' + file, path + '/' + file)
444 443
 
445 444
 		f = open(path + "/index.html", 'w')
446 445
 		format = '%Y-%m-%d %H:%m:%S'