Fixed an issue when there were exactly 50 trades, it was sending an extra empty table
Signed-off-by: Erwin Hoeckx <hawkeyenl@yahoo.com>
This commit is contained in:
parent
c928cd38dc
commit
65a9763fa5
@ -331,7 +331,7 @@ class Telegram(RPCHandler):
|
|||||||
self._config['stake_currency'], self._config.get('fiat_display_currency', ''))
|
self._config['stake_currency'], self._config.get('fiat_display_currency', ''))
|
||||||
|
|
||||||
max_trades_per_msg = 50
|
max_trades_per_msg = 50
|
||||||
for i in range(0, max(int(len(statlist) / max_trades_per_msg) + 1, 1)):
|
for i in range(0, max(int(len(statlist) / max_trades_per_msg + 0.99), 1)):
|
||||||
message = tabulate(statlist[i * max_trades_per_msg:(i + 1) * max_trades_per_msg],
|
message = tabulate(statlist[i * max_trades_per_msg:(i + 1) * max_trades_per_msg],
|
||||||
headers=head,
|
headers=head,
|
||||||
tablefmt='simple')
|
tablefmt='simple')
|
||||||
|
Loading…
Reference in New Issue
Block a user