feat: Add bid sorting to auction page and add tx links
All checks were successful
Build Docker / Build Image (push) Successful in 1m16s

This commit is contained in:
2025-07-12 14:13:40 +10:00
parent 63e0b1c2f2
commit 7bc1fad280
4 changed files with 46 additions and 12 deletions

View File

@@ -476,9 +476,11 @@ def getAddressFromCoin(coinhash: str, coinindex = 0):
# Get the address from the hash
response = requests.get(get_node_api_url(f"coin/{coinhash}/{coinindex}"))
if response.status_code != 200:
print(f"Error getting address from coin: {response.text}")
return "No Owner"
data = response.json()
if 'address' not in data:
print(json.dumps(data, indent=4))
return "No Owner"
return data['address']