generated from nathanwoodburn/firewallet-plugin-template
feat: Don't show info for auction
This commit is contained in:
@@ -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>"}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user