mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-04 19:46:02 +02:00
Update the readme to include a freshness date.
This commit is contained in:
parent
46b838fb5f
commit
c28bef1376
|
@ -3,7 +3,10 @@
|
||||||
This repository consolidates several reputable `hosts` files, and merges them into a single amalgamated hosts file
|
This repository consolidates several reputable `hosts` files, and merges them into a single amalgamated hosts file
|
||||||
with duplicates removed. You can [download the resultant amalgamated hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) or clone this repo and generate your own using the Python script provided.
|
with duplicates removed. You can [download the resultant amalgamated hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) or clone this repo and generate your own using the Python script provided.
|
||||||
|
|
||||||
**Currently this amalgamated hosts file contains @NUM_ENTRIES@ unique entries.**
|
**Details about this amalgamated hosts file:**
|
||||||
|
|
||||||
|
* Source data was updated, and the amalgamated hosts file was generated, on **@GEN_DATE@**.
|
||||||
|
* Currently this amalgamated hosts file contains **@NUM_ENTRIES@ unique entries**.
|
||||||
|
|
||||||
## Goals of this amalgamated hosts file
|
## Goals of this amalgamated hosts file
|
||||||
|
|
||||||
|
|
|
@ -333,6 +333,7 @@ def writeOpeningHeader(finalFile):
|
||||||
def updateReadme(numberOfRules):
|
def updateReadme(numberOfRules):
|
||||||
with open(README_FILE, "wt") as out:
|
with open(README_FILE, "wt") as out:
|
||||||
for line in open(README_TEMPLATE):
|
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)))
|
out.write(line.replace('@NUM_ENTRIES@', "{:,}".format(numberOfRules)))
|
||||||
|
|
||||||
def moveHostsFileIntoPlace(finalFile):
|
def moveHostsFileIntoPlace(finalFile):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user