From 1742ac6988ed8bdf05f8e856b02d344cebc9a838 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 18 Jul 2025 12:43:47 +1000 Subject: [PATCH] fix: Add score to unlisted domains --- shakestation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"}