remove signed stats from stats command
This commit is contained in:
		
							parent
							
								
									68ebb2f0df
								
							
						
					
					
						commit
						6624a80c68
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -37,7 +37,6 @@ def show_stats():
 | 
				
			||||||
        # define stats messages here
 | 
					        # define stats messages here
 | 
				
			||||||
        totalBlocks = len(blockmetadb.get_block_list())
 | 
					        totalBlocks = len(blockmetadb.get_block_list())
 | 
				
			||||||
        home = identifyhome.identify_home()
 | 
					        home = identifyhome.identify_home()
 | 
				
			||||||
        signedBlocks = len(onionrblockapi.Block.getBlocks(signed=True))
 | 
					 | 
				
			||||||
        totalBanned = len(onionrblacklist.OnionrBlackList().getList())
 | 
					        totalBanned = len(onionrblacklist.OnionrBlackList().getList())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        messages = {
 | 
					        messages = {
 | 
				
			||||||
| 
						 | 
					@ -64,9 +63,7 @@ def show_stats():
 | 
				
			||||||
            str(len(config.get('plugins.enabled', list()))) + ' / ' +
 | 
					            str(len(config.get('plugins.enabled', list()))) + ' / ' +
 | 
				
			||||||
            str(len(os.listdir(home + 'plugins/'))),
 | 
					            str(len(os.listdir(home + 'plugins/'))),
 | 
				
			||||||
            'Stored Blocks': str(totalBlocks),
 | 
					            'Stored Blocks': str(totalBlocks),
 | 
				
			||||||
            'Deleted Blocks': str(totalBanned),
 | 
					            'Deleted Blocks': str(totalBanned)
 | 
				
			||||||
            'Percent Blocks Signed':
 | 
					 | 
				
			||||||
            str(round(100 * signedBlocks / max(totalBlocks, 1), 2)) + '%'
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # color configuration
 | 
					        # color configuration
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue