From ff96752470d113e5e194c80c5b57484f405d8d6b Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 18 Jul 2025 12:42:41 +1000 Subject: [PATCH] feat: Don't show info for auction --- shakestation.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shakestation.py b/shakestation.py index 454c8aa..8eec256 100644 --- a/shakestation.py +++ b/shakestation.py @@ -61,10 +61,16 @@ def domain_info(params, authentication): if "type" not in data["data"]: return {"info": "No type found in the data"} domainType = data["data"]["type"] + + skippedTypes = ["auction"] + if domainType in skippedTypes: + return {} + + if domainType == "marketplace": score = data["data"].get("score", "No score available") price = data["data"].get("price", "No price available") - return {"info": f"

Score: {score}
Price: {price}


View Listing"} + return {"info": f"

Score: {score}
Price: {price}

View Listing"}