flake8 fix

This commit is contained in:
Kavinkumar 2022-03-11 02:41:21 +05:30 committed by GitHub
parent a417e1fa1e
commit a450831f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,7 @@ class Telegram(RPCHandler):
is_sub_trade = msg.get('sub_trade')
is_sub_profit = msg['profit_amount'] != msg.get('cumulative_profit')
profit_prefix = ('Sub ' if is_sub_profit
else 'Cumulative ') if is_sub_trade else ''
else 'Cumulative ') if is_sub_trade else ''
if is_sub_profit and is_sub_trade:
if self._rpc._fiat_converter:
cp_fiat = self._rpc._fiat_converter.convert_amount(