Merge pull request #1267 from freqtrade/telegram_fix

flush session for /forcesell all
This commit is contained in:
Samuel Husso
2018-10-10 08:44:44 +03:00
committed by GitHub

View File

@@ -363,6 +363,7 @@ class RPC(object):
# Execute sell for all open orders
for trade in Trade.query.filter(Trade.is_open.is_(True)).all():
_exec_forcesell(trade)
Trade.session.flush()
return
# Query for trade