flake8 fix

Co-Authored-By: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com>
This commit is contained in:
Kavinkumar 2022-03-06 18:38:43 +05:30
parent 0fceeba9bf
commit 2d9c323a4a
2 changed files with 1 additions and 2 deletions

View File

@ -193,7 +193,6 @@ class RPC:
stoploss_current_dist_ratio = stoploss_current_dist / current_rate
trade_dict = trade.to_json()
import pprint;logger.info(pprint.pformat(trade_dict))
trade_dict.update(dict(
base_currency=self._freqtrade.config['stake_currency'],
close_profit=trade.close_profit if not trade.is_open else None,

View File

@ -447,7 +447,7 @@ class Telegram(RPCHandler):
return lines
@authorized_only
def _status(self, update: Update, context: CallbackContext) -> None:
def _status(self, update: Update, context: CallbackContext) -> None: # noqa: max-complexity: 13
"""
Handler for /status.
Returns the current TradeThread status