diff --git a/shakestation.py b/shakestation.py index 8eec256..eac22e1 100644 --- a/shakestation.py +++ b/shakestation.py @@ -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"

Score: {score}

"} - if domainType == "marketplace": - score = data["data"].get("score", "No score available") + if domainType == "marketplace": price = data["data"].get("price", "No price available") return {"info": f"

Score: {score}
Price: {price}

View Listing"}