feat: Don't show info for auction

This commit is contained in:
2025-07-18 12:42:41 +10:00
parent 88f9c07f72
commit ff96752470

View File

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