fixed flake8 and mypy errors

This commit is contained in:
Aezo Teo
2021-12-29 21:48:50 +08:00
parent b6092e2e3c
commit ee7cbcd69f
4 changed files with 7 additions and 6 deletions

View File

@@ -245,7 +245,7 @@ class RPC:
fiat_profit_sum = fiat_profit if isnan(fiat_profit_sum) \
else fiat_profit_sum + fiat_profit
trades_list.append([
trade.id + f' {direction_str}',
str(trade.id) + f' {direction_str}',
trade.pair + ('*' if (trade.open_order_id is not None
and trade.close_rate_requested is None) else '')
+ ('**' if (trade.close_rate_requested is not None) else ''),