Update zeroname_updater.py

This commit is contained in:
Jabba 2020-10-14 12:46:19 +00:00 committed by GitHub
parent 0229d30ec5
commit ac551a3f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def processNameOp(domain, value, test=False):
# Note: Requires the file data/names.json to exist and contain "{}" to work
names_raw = open(names_path, "rb").read()
names = json.loads(names_raw)
for subdomain, address in list(data["zeronet"].items()):
for subdomain, address in data["zeronet"].items():
subdomain = subdomain.lower()
address = re.sub("[^A-Za-z0-9]", "", address)
print(subdomain, domain, "->", address)