From: Steven Black Date: Wed, 16 Mar 2016 04:33:49 +0000 (-0400) Subject: Note the number of unique domains in each hosts file's header. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=190a53c4cfbf987ba2706dca390d9e56735fe204;p=stevenblack-hosts.git Note the number of unique domains in each hosts file's header. --- diff --git a/updateHostsFile.py b/updateHostsFile.py index cff6fe561..dda1b51d0 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -370,7 +370,8 @@ def writeOpeningHeader(finalFile): finalFile.seek(0) #write at the top writeData(finalFile, '# This hosts file is a merged collection of hosts from reputable sources,\n') writeData(finalFile, '# with a dash of crowd sourcing via Github\n#\n') - writeData(finalFile, '# Date: ' + time.strftime("%B %d %Y", time.gmtime()) + '\n#\n') + writeData(finalFile, '# Date: ' + time.strftime("%B %d %Y", time.gmtime()) + '\n') + writeData(finalFile, '# Number of unique domains: ' + "{:,}".format(numberOfRules) + '\n#\n') writeData(finalFile, '# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts\n') writeData(finalFile, '# Project home page: https://github.com/StevenBlack/hosts\n#\n') writeData(finalFile, '# ===============================================================\n')