Redme tweaks, format the numbers in the table.

This commit is contained in:
Steven Black
2016-03-24 17:55:23 -04:00
parent e459c68a65
commit a541505ed9
9 changed files with 66 additions and 65 deletions

View File

@@ -27,7 +27,7 @@ Python3 = sys.version_info >= (3,0)
def main():
s = Template('${description} | [Readme](https://github.com/StevenBlack/hosts/blob/master/${location}readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/${location}hosts) | ${entries}')
s = Template('${description} | [Readme](https://github.com/StevenBlack/hosts/blob/master/${location}readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/${location}hosts) | ${fmtentries}')
with open(README_DATA_FILENAME, 'r') as f:
data = json.load(f)
@@ -41,6 +41,7 @@ def main():
tocRows = ""
for key in keys:
data[key]["fmtentries"] = "{:,}".format(data[key]["entries"])
if key == "base":
data[key]["description"] = 'Unified hosts = **(adware + malware)**'
else: