fix: Update unknown owner message
All checks were successful
Build Docker / Build Image (push) Successful in 1m10s
All checks were successful
Build Docker / Build Image (push) Successful in 1m10s
Remove logging for DNS rendering
This commit is contained in:
12
account.py
12
account.py
@@ -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']
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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"):
|
||||||
|
|||||||
Reference in New Issue
Block a user