mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Trying to fix flake8 errors
This commit is contained in:
parent
48289e8ca7
commit
b938c536fa
|
@ -180,16 +180,16 @@ class FreqtradeBot:
|
|||
Notify the user when the bot is stopped
|
||||
and there are still open trades active.
|
||||
"""
|
||||
open_trades = Trade.get_trades([Trade.is_open == True,
|
||||
]).all()
|
||||
open_trades = Trade.get_trades([Trade.is_open == 1,
|
||||
]).all()
|
||||
|
||||
if len(open_trades) is not 0:
|
||||
if len(open_trades) != 0:
|
||||
msg = {
|
||||
f'type': RPCMessageType.WARNING_NOTIFICATION,
|
||||
f'status': f'{len(open_trades)} open trades active.\n\n'
|
||||
'type': RPCMessageType.WARNING_NOTIFICATION,
|
||||
'status': f'{len(open_trades)} open trades active.\n\n'
|
||||
f'Handle these trades manually on {self.exchange.name}, '
|
||||
f'or \'/start\' the bot again and use \'/stopbuy\' '
|
||||
f'to handle open trades gracefully.'
|
||||
f'to handle open trades gracefully.',
|
||||
}
|
||||
self.rpc.send_msg(msg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user