Small bugfix to make sure it shows all the trades

Signed-off-by: Erwin Hoeckx <hawkeyenl@yahoo.com>
This commit is contained in:
Erwin Hoeckx 2021-03-23 16:45:42 +01:00
parent 4e8999ade3
commit c928cd38dc

View File

@ -331,7 +331,7 @@ class Telegram(RPCHandler):
self._config['stake_currency'], self._config.get('fiat_display_currency', ''))
max_trades_per_msg = 50
for i in range(0, max(int(len(statlist) / max_trades_per_msg), 1)):
for i in range(0, max(int(len(statlist) / max_trades_per_msg) + 1, 1)):
message = tabulate(statlist[i * max_trades_per_msg:(i + 1) * max_trades_per_msg],
headers=head,
tablefmt='simple')