@@ -32,27 +32,28 @@ def cli(env):
3232 utils .lookup (email , 'vendor' , 'keyName' )])
3333
3434 overview_table = _build_overview_table (email_manager .get_account_overview (email .get ('id' )))
35- statistics = email_manager .get_statistics (email .get ('id' ))
35+ # Commented this line until we fix EmailManager.GetStatistics() method in golang plugin
36+ # statistics = email_manager.get_statistics(email.get('id'))
3637
3738 table .add_row (['email_information' , table_information ])
3839 table .add_row (['email_overview' , overview_table ])
39- for statistic in statistics :
40- table .add_row (['statistics' , build_statistics_table (statistic )])
40+ # Commented these lines until we fix EmailManager.GetStatistics() method in golang plugin
41+ # for statistic in statistics:
42+ # table.add_row(['statistics', build_statistics_table(statistic)])
4143
4244 env .fout (table )
4345
4446
4547def _build_overview_table (email_overview ):
4648 table = formatting .Table (
47- ['credit_allowed' , 'credits_remain' , 'credits_overage' , 'credits_used' ,
48- 'package' , 'reputation' , 'requests' ])
49+ ['package' , 'reputation' ])
4950 table .align ['name' ] = 'r'
5051 table .align ['value' ] = 'l'
5152
52- table .add_row ([email_overview . get ( 'creditsAllowed' ), email_overview . get ( 'creditsRemain' ),
53- email_overview . get ( 'creditsOverage' ), email_overview . get ( 'creditsUsed ' ),
54- email_overview . get ( 'package' ), email_overview . get ( 'reputation' ),
55- email_overview . get ( 'requests' ) ])
53+ table .add_row ([
54+ utils . lookup ( email_overview , 'profile' , 'package ' ),
55+ utils . lookup ( email_overview , 'profile' , 'reputation' )
56+ ])
5657
5758 return table
5859
0 commit comments