From 8a43b2fa1c50b3e299f6d6d5ed166cb679c47817 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Sat, 24 Mar 2018 01:37:07 +0200 Subject: [PATCH] Better formatting for "cj batch" rows in wallet history output --- jmclient/jmclient/wallet_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jmclient/jmclient/wallet_utils.py b/jmclient/jmclient/wallet_utils.py index 5a0c22c..839236c 100644 --- a/jmclient/jmclient/wallet_utils.py +++ b/jmclient/jmclient/wallet_utils.py @@ -690,7 +690,7 @@ def wallet_fetch_history(wallet, options): elif tx_type != 'unknown type': if n > 0: # print the previously-accumulated batch - print_row('N='+str(n), cj_batch[1]/n, 'cj batch', + print_row('N='+"%2d"%n, cj_batch[1]/n, 'cj batch ', cj_batch[2], cj_batch[3], cj_batch[4], cj_batch[5]/n, cj_batch[6], cj_batch[7]/n, min(cj_batch[8]), max(cj_batch[9]), '...') @@ -713,7 +713,7 @@ def wallet_fetch_history(wallet, options): if options.verbosity <= 2: n = cj_batch[0] if n > 0: - print_row('N='+str(n), cj_batch[1]/n, 'cj batch', cj_batch[2], + print_row('N='+"%2d"%n, cj_batch[1]/n, 'cj batch ', cj_batch[2], cj_batch[3], cj_batch[4], cj_batch[5]/n, cj_batch[6], cj_batch[7]/n, min(cj_batch[8]), max(cj_batch[9]), '...')