mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
rpc/rpc.py: fix indentation
This commit is contained in:
parent
f6df7df9bf
commit
a5c62b5c10
|
@ -196,11 +196,9 @@ class RPC(object):
|
|||
profit_all_percent.append(profit_percent)
|
||||
|
||||
best_pair = Trade.session.query(
|
||||
Trade.pair,
|
||||
sql.func.sum(Trade.close_profit).label('profit_sum')
|
||||
)\
|
||||
.filter(Trade.is_open.is_(False))\
|
||||
.group_by(Trade.pair)\
|
||||
Trade.pair, sql.func.sum(Trade.close_profit).label('profit_sum')
|
||||
).filter(Trade.is_open.is_(False)) \
|
||||
.group_by(Trade.pair) \
|
||||
.order_by(sql.text('profit_sum DESC')).first()
|
||||
|
||||
if not best_pair:
|
||||
|
|
Loading…
Reference in New Issue
Block a user