simplify status_table command

This commit is contained in:
Matthias
2019-11-12 13:54:26 +01:00
parent 7a2d917c66
commit ab9506df48
4 changed files with 17 additions and 17 deletions

View File

@@ -234,8 +234,8 @@ class Telegram(RPC):
:return: None
"""
try:
df_statuses = self._rpc_status_table()
message = tabulate(df_statuses, headers='keys', tablefmt='simple')
statlist, head = self._rpc_status_table(self._config.get('fiat_display_currency', ''))
message = tabulate(statlist, headers=head, tablefmt='simple')
self._send_msg(f"<pre>{message}</pre>", parse_mode=ParseMode.HTML)
except RPCException as e:
self._send_msg(str(e))