diff options
author | diSabler <dissy@ya.ru> | 2020-03-20 17:00:11 +0300 |
---|---|---|
committer | diSabler <dissy@ya.ru> | 2020-03-20 17:00:11 +0300 |
commit | 57773cbc08cac160a4292f4bcdd7709b39d21490 (patch) | |
tree | c0b5ed8c8d373b92c9813c1339a8528cc29eeada | |
parent | 28bc38837511705f62b72e9c82fce56720b2d2e0 (diff) |
chg: reduce output for apple watch
-rw-r--r-- | plugins/yandexcurrency.py | 6 |
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!'
|