feat: Pull updates from main
All checks were successful
Build Docker / Build Image (push) Successful in 1m16s
All checks were successful
Build Docker / Build Image (push) Successful in 1m16s
Merges updates from #1
This commit is contained in:
Binary file not shown.
@@ -1276,7 +1276,7 @@ def _execute_batch_operation(account_name, batch, operation_type="sendbatch"):
|
|||||||
# Make the batch request
|
# Make the batch request
|
||||||
try:
|
try:
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
f"http://x:{HSD_API}@{HSD_IP}:{HSD_WALLET_PORT}",
|
get_wallet_api_url(),
|
||||||
json={"method": operation_type, "params": [batch]},
|
json={"method": operation_type, "params": [batch]},
|
||||||
timeout=30 # Add timeout to prevent hanging
|
timeout=30 # Add timeout to prevent hanging
|
||||||
).json()
|
).json()
|
||||||
|
|||||||
15
main.py
15
main.py
@@ -530,10 +530,7 @@ def search():
|
|||||||
|
|
||||||
dns = account_module.getDNS(search_term)
|
dns = account_module.getDNS(search_term)
|
||||||
|
|
||||||
own_domains = account_module.getDomains(account)
|
if account_module.isOwnDomain(account, search_term):
|
||||||
own_domains = [x['name'] for x in own_domains]
|
|
||||||
own_domains = [x.lower() for x in own_domains]
|
|
||||||
if search_term in own_domains:
|
|
||||||
owner = "You"
|
owner = "You"
|
||||||
|
|
||||||
dns = render.dns(dns)
|
dns = render.dns(dns)
|
||||||
@@ -728,10 +725,7 @@ def editPage(domain: str):
|
|||||||
|
|
||||||
domain = domain.lower()
|
domain = domain.lower()
|
||||||
|
|
||||||
own_domains = account_module.getDomains(account)
|
if not account_module.isOwnDomain(account, domain):
|
||||||
own_domains = [x['name'] for x in own_domains]
|
|
||||||
own_domains = [x.lower() for x in own_domains]
|
|
||||||
if domain not in own_domains:
|
|
||||||
return redirect("/search?q=" + domain)
|
return redirect("/search?q=" + domain)
|
||||||
|
|
||||||
|
|
||||||
@@ -973,10 +967,7 @@ def auction(domain):
|
|||||||
expires = domainInfo['info']['stats']['daysUntilExpire']
|
expires = domainInfo['info']['stats']['daysUntilExpire']
|
||||||
next = f"Expires in ~{expires} days"
|
next = f"Expires in ~{expires} days"
|
||||||
|
|
||||||
own_domains = account_module.getDomains(account)
|
if account_module.isOwnDomain(account,domain):
|
||||||
own_domains = [x['name'] for x in own_domains]
|
|
||||||
own_domains = [x.lower() for x in own_domains]
|
|
||||||
if search_term in own_domains:
|
|
||||||
next_action = f'<a href="/manage/{domain}">Manage</a>'
|
next_action = f'<a href="/manage/{domain}">Manage</a>'
|
||||||
elif state == "REVOKED":
|
elif state == "REVOKED":
|
||||||
next = "Available Now"
|
next = "Available Now"
|
||||||
|
|||||||
Reference in New Issue
Block a user