Remove unnecessary use of comprehension

Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
shubhendra 2021-03-21 17:14:31 +05:30
parent 62d99a0b74
commit 537ad059bc
No known key found for this signature in database
GPG Key ID: 9AFEF5C98D542137

View File

@ -611,7 +611,7 @@ class LocalTrade():
else:
# Not used during backtesting, but might be used by a strategy
sel_trades = [trade for trade in LocalTrade.trades + LocalTrade.trades_open]
sel_trades = list(LocalTrade.trades + LocalTrade.trades_open)
if pair:
sel_trades = [trade for trade in sel_trades if trade.pair == pair]