mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-24 14:20:09 +01:00
Update the readme to include a freshness date.
This commit is contained in:
@@ -333,6 +333,7 @@ def writeOpeningHeader(finalFile):
|
||||
def updateReadme(numberOfRules):
|
||||
with open(README_FILE, "wt") as out:
|
||||
for line in open(README_TEMPLATE):
|
||||
line = line.replace( '@GEN_DATE@', time.strftime("%Y %B %d at %H:%M:%S +0000", time.gmtime()))
|
||||
out.write(line.replace('@NUM_ENTRIES@', "{:,}".format(numberOfRules)))
|
||||
|
||||
def moveHostsFileIntoPlace(finalFile):
|
||||
|
||||
Reference in New Issue
Block a user