From dbdd7f38a88b5857dd276456951c168796b5b286 Mon Sep 17 00:00:00 2001 From: kevinjulian Date: Sun, 4 Jul 2021 02:56:05 +0700 Subject: [PATCH] add plural --- freqtrade/rpc/telegram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 7ed564297..389ef84a4 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -11,7 +11,6 @@ from html import escape from itertools import chain from math import isnan from typing import Any, Callable, Dict, List, Optional, Union - import arrow from tabulate import tabulate from telegram import (CallbackQuery, InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, @@ -24,7 +23,7 @@ from freqtrade.__init__ import __version__ from freqtrade.constants import DUST_PER_COIN from freqtrade.enums import RPCMessageType from freqtrade.exceptions import OperationalException -from freqtrade.misc import chunks, round_coin_value +from freqtrade.misc import chunks, round_coin_value, plural from freqtrade.rpc import RPC, RPCException, RPCHandler @@ -623,7 +622,8 @@ class Telegram(RPCHandler): if total_dust_balance > 0: output += ( - f"*{total_dust_currencies} Other Currencies:*\n" + f"*{total_dust_currencies} Other " + f"{plural(total_dust_currencies, 'Currency', 'Currencies')}:*\n" f"\t`Est. {result['stake']}: " f"{round_coin_value(total_dust_balance, result['stake'], False)}`\n")