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-03-20 17:00:11 +0300
committerdiSabler <dissy@ya.ru>2020-03-20 17:00:11 +0300
commit57773cbc08cac160a4292f4bcdd7709b39d21490 (patch)
treec0b5ed8c8d373b92c9813c1339a8528cc29eeada
parent28bc38837511705f62b72e9c82fce56720b2d2e0 (diff)
chg: reduce output for apple watch
-rw-r--r--plugins/yandexcurrency.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/yandexcurrency.py b/plugins/yandexcurrency.py
index 393625f..f2487a7 100644
--- a/plugins/yandexcurrency.py
+++ b/plugins/yandexcurrency.py
@@ -32,10 +32,10 @@ def cmd_yandex_currency(raw_in):
'''.replace('\t', '').replace('\n', '').strip()
res = re.findall(regexp , data)
r = [res[0][t:t+2] for t in xrange(0, len(res[0]), 2)]
- msg = '<b>Yandex exchange rates</b><pre>'
- icons = [['USD', 'πŸ‡ΊπŸ‡Έ'], ['EUR', 'πŸ‡«πŸ‡²'], ['OIL', 'πŸ›’']]
+ msg = '<b>Yandex rates</b><pre>'
+ icons = ['πŸ‡ΊπŸ‡Έ', 'πŸ‡«πŸ‡²', 'πŸ›’']
for n, i in enumerate(icons):
- msg += '\n%s %-7s %-7s %s' % (i[1], i[0], r[n][0].replace(',', '.'), r[n][1].replace(',', '.'))
+ msg += '\n%s %s %s' % (i, r[n][0].replace(',', '.'), r[n][1].replace(',', '.'))
msg += '</pre>'
except:
msg = 'Ooops! The market collapsed, the salary will not be!'