flush session for /forcesell all

This commit is contained in:
Matthias 2018-10-09 21:08:56 +02:00
parent d23dc3ec41
commit 44c275c801

View File

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