fix: Update unknown owner message
All checks were successful
Build Docker / Build Image (push) Successful in 1m10s

Remove logging for DNS rendering
This commit is contained in:
2025-07-12 12:03:36 +10:00
parent 21043fc124
commit 988d03b48c
2 changed files with 2 additions and 11 deletions

View File

@@ -476,18 +476,10 @@ def getAddressFromCoin(coinhash: str, coinindex = 0):
# Get the address from the hash # Get the address from the hash
response = requests.get(f"http://x:{HSD_API}@{HSD_IP}:{HSD_NODE_PORT}/coin/{coinhash}/{coinindex}") response = requests.get(f"http://x:{HSD_API}@{HSD_IP}:{HSD_NODE_PORT}/coin/{coinhash}/{coinindex}")
if response.status_code != 200: if response.status_code != 200:
return { return "No Owner"
"error": {
"message": "Error getting address from coin"
}
}
data = response.json() data = response.json()
if 'address' not in data: if 'address' not in data:
return { return "No Owner"
"error": {
"message": "Error getting address from coin"
}
}
return data['address'] return data['address']

View File

@@ -210,7 +210,6 @@ def dns(data, edit=False):
html_output = "" html_output = ""
index = 0 index = 0
for entry in data: for entry in data:
print(entry, flush=True)
html_output += f"<tr><td>{entry['type']}</td>\n" html_output += f"<tr><td>{entry['type']}</td>\n"
if entry['type'] != 'DS' and not entry['type'].startswith("GLUE") and not entry['type'].startswith("SYNTH"): if entry['type'] != 'DS' and not entry['type'].startswith("GLUE") and not entry['type'].startswith("SYNTH"):