Update freqtrade/persistence/models.py

Co-authored-by: Matthias <xmatthias@outlook.com>
This commit is contained in:
sergeykhliustin 2021-09-17 18:23:13 +03:00 committed by GitHub
parent 54ef36a497
commit 982deeedf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -846,7 +846,7 @@ class Trade(_DECL_BASE, LocalTrade):
func.sum(Trade.close_profit).label('profit_sum'),
func.sum(Trade.close_profit_abs).label('profit_sum_abs'),
func.count(Trade.pair).label('count')
).filter(filters)\
).filter(*filters)\
.group_by(Trade.pair) \
.order_by(desc('profit_sum_abs')) \
.all()