From 6624a80c688581f3d1cd55b23ebd7d7f6c431496 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 29 Jan 2020 20:20:02 -0600 Subject: [PATCH] remove signed stats from stats command --- src/onionrcommands/onionrstatistics.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/onionrcommands/onionrstatistics.py b/src/onionrcommands/onionrstatistics.py index 38434e28..fe734141 100755 --- a/src/onionrcommands/onionrstatistics.py +++ b/src/onionrcommands/onionrstatistics.py @@ -37,7 +37,6 @@ def show_stats(): # define stats messages here totalBlocks = len(blockmetadb.get_block_list()) home = identifyhome.identify_home() - signedBlocks = len(onionrblockapi.Block.getBlocks(signed=True)) totalBanned = len(onionrblacklist.OnionrBlackList().getList()) messages = { @@ -64,9 +63,7 @@ def show_stats(): str(len(config.get('plugins.enabled', list()))) + ' / ' + str(len(os.listdir(home + 'plugins/'))), 'Stored Blocks': str(totalBlocks), - 'Deleted Blocks': str(totalBanned), - 'Percent Blocks Signed': - str(round(100 * signedBlocks / max(totalBlocks, 1), 2)) + '%' + 'Deleted Blocks': str(totalBanned) } # color configuration