fix: Add score to unlisted domains

This commit is contained in:
2025-07-18 12:43:47 +10:00
parent ff96752470
commit 1742ac6988

View File

@@ -63,12 +63,12 @@ def domain_info(params, authentication):
domainType = data["data"]["type"]
skippedTypes = ["auction"]
score = data["data"].get("score", "No score available")
if domainType in skippedTypes:
return {}
return {"info": f"<h4>Score: {score}</h4>"}
if domainType == "marketplace":
score = data["data"].get("score", "No score available")
price = data["data"].get("price", "No price available")
return {"info": f"<h4>Score: {score}<br>Price: {price}</h4><a href='https://shakestation.io/domain/{domain}'>View Listing</a>"}