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
|
Notify the user when the bot is stopped
|
||||||
and there are still open trades active.
|
and there are still open trades active.
|
||||||
"""
|
"""
|
||||||
open_trades = Trade.get_trades([Trade.is_open == True,
|
open_trades = Trade.get_trades([Trade.is_open == 1,
|
||||||
]).all()
|
]).all()
|
||||||
|
|
||||||
if len(open_trades) is not 0:
|
if len(open_trades) != 0:
|
||||||
msg = {
|
msg = {
|
||||||
f'type': RPCMessageType.WARNING_NOTIFICATION,
|
'type': RPCMessageType.WARNING_NOTIFICATION,
|
||||||
f'status': f'{len(open_trades)} open trades active.\n\n'
|
'status': f'{len(open_trades)} open trades active.\n\n'
|
||||||
f'Handle these trades manually on {self.exchange.name}, '
|
f'Handle these trades manually on {self.exchange.name}, '
|
||||||
f'or \'/start\' the bot again and use \'/stopbuy\' '
|
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)
|
self.rpc.send_msg(msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user