coins: display currency name in upper case

This commit is contained in:
jkhsjdhjs 2024-12-17 00:17:38 +00:00
parent 91abf2bf93
commit 360fd4d164

View File

@ -10,7 +10,7 @@ def _currency(name, prefix=None, suffix=None):
def tostr(value): def tostr(value):
return '{prefix}{value:,.2f}{suffix}'.format( return '{prefix}{value:,.2f}{suffix}'.format(
prefix=prefix or '', prefix=prefix or '',
suffix=suffix or ('' if (prefix or suffix) else (' ' + name)), suffix=suffix or ('' if (prefix or suffix) else (' ' + name.upper())),
value=value) value=value)
return tostr return tostr