generated from nathanwoodburn/firewallet-plugin-template
fix: Add score to unlisted domains
This commit is contained in:
@@ -63,12 +63,12 @@ def domain_info(params, authentication):
|
|||||||
domainType = data["data"]["type"]
|
domainType = data["data"]["type"]
|
||||||
|
|
||||||
skippedTypes = ["auction"]
|
skippedTypes = ["auction"]
|
||||||
|
score = data["data"].get("score", "No score available")
|
||||||
if domainType in skippedTypes:
|
if domainType in skippedTypes:
|
||||||
return {}
|
return {"info": f"<h4>Score: {score}</h4>"}
|
||||||
|
|
||||||
|
|
||||||
if domainType == "marketplace":
|
if domainType == "marketplace":
|
||||||
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><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