rpc/rpc.py: fix indentation

This commit is contained in:
gcarq 2018-03-18 00:27:57 +01:00
parent f6df7df9bf
commit a5c62b5c10

View File

@ -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: