Compare commits

...

2 Commits

5 changed files with 3 additions and 17 deletions

Binary file not shown.

View File

@ -436,7 +436,6 @@ def send(account,address,amount):
def isOwnDomain(account,name: str):
domains = getDomains(account)
for domain in domains:
print(domain)
if domain['name'] == name:
return True
return False
@ -1139,7 +1138,6 @@ def getxPub(account):
try:
print(account_name)
response = hsw.getAccountInfo(account_name,"default")
if 'error' in response:
return {

View File

@ -551,7 +551,6 @@ def finalize(domain: str):
return redirect("/logout")
domain = domain.lower()
print(domain)
response = account_module.finalize(request.cookies.get("account"),domain)
if response['error'] != None:
print(response)
@ -570,7 +569,6 @@ def cancelTransfer(domain: str):
return redirect("/logout")
domain = domain.lower()
print(domain)
response = account_module.cancelTransfer(request.cookies.get("account"),domain)
if 'error' in response:
if response['error'] != None:
@ -885,7 +883,6 @@ def auction(domain):
# Get TX
revealInfo = account_module.getRevealTX(reveal)
reveal['bid'] = revealInfo
print(revealInfo)
bids = render.bids(bids,reveals)
@ -947,7 +944,6 @@ def rescan_auction(domain):
domain = domain.lower()
response = account_module.rescan_auction(account,domain)
print(response)
return redirect("/auction/" + domain)
@app.route('/auction/<domain>/bid')
@ -1023,7 +1019,7 @@ def bid_confirm(domain):
response = account_module.bid(request.cookies.get("account"),domain,
float(bid),
float(blind))
print(response)
if 'error' in response:
return redirect("/auction/" + domain + "?error=" + response['error']['message'])
@ -1045,7 +1041,7 @@ def open_auction(domain):
if 'error' in response:
if response['error'] != None:
return redirect("/auction/" + domain + "?error=" + response['error']['message'])
print(response)
return redirect("/success?tx=" + response['hash'])
@app.route('/auction/<domain>/reveal')

View File

@ -42,11 +42,3 @@ if __name__ == '__main__':
print(f'Press Ctrl+C to stop the server', flush=True)
print(f'Serving on http://0.0.0.0:5000/', flush=True)
serve(app, host="0.0.0.0", port=5000, threads=threads)

View File

@ -64,7 +64,7 @@
</nav>
<div class="container-fluid" style="margin-bottom: 20px;">
<h3 class="text-dark mb-1">{{name}}</h3>
<h4 class="text-dark mb-1">{{description}}</h4>{{output|safe}}
<h4 class="text-dark mb-1">{{description|safe}}</h4>{{output|safe}}
</div>
</div>
<footer class="sticky-footer" style="background: var(--bs-primary-text-emphasis);">