From 4b732955c724d6988791dd51eee49c673f06f25e Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 18 Jul 2025 12:58:40 +1000 Subject: [PATCH] feat: Add link to view staked domain --- account.py | 0 shakestation.py | 9 ++++----- 2 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 account.py diff --git a/account.py b/account.py deleted file mode 100644 index e69de29..0000000 diff --git a/shakestation.py b/shakestation.py index 09fd20c..a4913c7 100644 --- a/shakestation.py +++ b/shakestation.py @@ -1,5 +1,4 @@ import json -import account import requests # Plugin Data @@ -89,10 +88,10 @@ def domain_info(params, authentication): if domainType == "marketplace": price = data["data"].get("price", "No price available") returnInfo = f"

Score: {score}
Price: {price}

View Listing" - - stakedData = checkStaked(domain) - if stakedData: - returnInfo += f"

Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)

" + else: + stakedData = checkStaked(domain) + if stakedData: + returnInfo += f"

Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)

View Listing"