diff --git a/scripts/generate.py b/scripts/generate.py index 24460f3..503908c 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -58,21 +58,23 @@ def ntpdig(endpoint): readme.write("##" + list["name"] + "\n") readme.write(list["description"] + "\n") - for srv in list["servers"]: - readme.write("###" + srv["name"] + "\n") - readme.write("|Endpoint|DNS Resolved|IP|Stratum|\n") - readme.write("|--------|------------|--|-------|\n") - - for ept in srv["endpoints"]: - readme.write("|" + ept["endpoint"]) - readme.write("|" + "Y" if ept["dns"] else "N") - if ept["ntp"] is not None: - readme.write("|" + ept["ntp"]["ip"}) - readme.write("|" + ept["ntp"]["stratum"]) - else: - readme.write("|N/A|N/A") + for srv in list["servers"]: + readme.write("###" + srv["name"] + "\n") + readme.write("|Endpoint|DNS Resolved|IP|Stratum|\n") + readme.write("|--------|------------|--|-------|\n") + + for ept in srv["endpoints"]: + readme.write("|" + ept["endpoint"]) + readme.write("|" + "Y" if ept["dns"] else "N") + if ept["ntp"] is not None: + readme.write("|" + ept["ntp"]["ip"}) + readme.write("|" + ept["ntp"]["stratum"]) + else: + readme.write("|N/A|N/A") readme.write("|\n") - + + readme.write("\n") + readme.write("\n") #print("List name: " + list["name"]) #print("List description: " + list["description"])