Remove unnecessary use of comprehension
Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
parent
62d99a0b74
commit
537ad059bc
@ -611,7 +611,7 @@ class LocalTrade():
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
# Not used during backtesting, but might be used by a strategy
|
# 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:
|
if pair:
|
||||||
sel_trades = [trade for trade in sel_trades if trade.pair == pair]
|
sel_trades = [trade for trade in sel_trades if trade.pair == pair]
|
||||||
|
Loading…
Reference in New Issue
Block a user