rpc/rpc.py: fix indentation
This commit is contained in:
parent
f6df7df9bf
commit
a5c62b5c10
@ -196,10 +196,8 @@ class RPC(object):
|
|||||||
profit_all_percent.append(profit_percent)
|
profit_all_percent.append(profit_percent)
|
||||||
|
|
||||||
best_pair = Trade.session.query(
|
best_pair = Trade.session.query(
|
||||||
Trade.pair,
|
Trade.pair, sql.func.sum(Trade.close_profit).label('profit_sum')
|
||||||
sql.func.sum(Trade.close_profit).label('profit_sum')
|
).filter(Trade.is_open.is_(False)) \
|
||||||
)\
|
|
||||||
.filter(Trade.is_open.is_(False))\
|
|
||||||
.group_by(Trade.pair) \
|
.group_by(Trade.pair) \
|
||||||
.order_by(sql.text('profit_sum DESC')).first()
|
.order_by(sql.text('profit_sum DESC')).first()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user