diff --git a/account.py b/account.py index f31c2e8..8d1e484 100644 --- a/account.py +++ b/account.py @@ -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 { diff --git a/main.py b/main.py index cb76ed2..63216e1 100644 --- a/main.py +++ b/main.py @@ -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//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//reveal') diff --git a/server.py b/server.py index 676f55a..b49ab0e 100644 --- a/server.py +++ b/server.py @@ -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) - - - - - - - -