getWalletsInfo reports errors per wallet.

This commit is contained in:
tecnovert
2019-07-24 01:33:24 +02:00
parent 683c6e6661
commit c51e28103e
2 changed files with 11 additions and 4 deletions

View File

@@ -132,8 +132,12 @@ class HttpHandler(BaseHTTPRequestHandler):
content += '<form method="post">'
for k, w in wallets.items():
cid = str(int(k))
content += '<h4>' + w['name'] + '</h4>' \
+ '<table>' \
content += '<h4>' + w['name'] + '</h4>'
if 'error' in w:
content += '<p>Error: {}</p>'.format(w['error'])
content += '<table>' \
+ '<tr><td>Balance:</td><td>' + w['balance'] + '</td></tr>' \
+ '<tr><td>Blocks:</td><td>' + str(w['blocks']) + '</td></tr>' \
+ '<tr><td>Synced:</td><td>' + str(w['synced']) + '</td></tr>' \