Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/isida/vi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiSabler <dissy@ya.ru>2020-05-05 13:40:50 +0300
committerdiSabler <dissy@ya.ru>2020-05-05 13:40:50 +0300
commit16fe94b1b23209b4a369a15ca02496a5379718de (patch)
tree379f0ae261f707fb4c9d91798e3c9d373dc9238a
parent1cadd0a6fdc553f3a43fc7acb2c00fb73b537a97 (diff)
add: currency sign in ycurr
-rw-r--r--plugins/yandexcurrency.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/yandexcurrency.py b/plugins/yandexcurrency.py
index 91488fe..eb8a6ca 100644
--- a/plugins/yandexcurrency.py
+++ b/plugins/yandexcurrency.py
@@ -34,8 +34,9 @@ def cmd_yandex_currency(raw_in):
r = r[-3:]
msg = '<b>Yandex rates</b><pre>'
icons = ['πŸ‡ΊπŸ‡Έ', 'πŸ‡«πŸ‡²', 'πŸ›’']
- for n, i in enumerate(icons):
- msg += '\n%s %s %s' % (i, r[n][0].replace(',', '.'), r[n][1].replace(',', '.'))
+ values = ['R', 'R', '%']
+ for n, i in enumerate(zip(icons, values)):
+ msg += '\n%s%s %s%s' % (i[0], r[n][0].replace(',', '.'), r[n][1].replace(',', '.'), i[1])
msg += '</pre>'
send_msg(raw_in, msg)