diff options
| author | André Doser <doser.andre@gmail.com> | 2015-01-28 09:54:58 +0100 |
|---|---|---|
| committer | André Doser <doser.andre@gmail.com> | 2015-01-28 09:54:58 +0100 |
| commit | 0d4aa14e59afcc20dcf30f51d224f4ba9e919141 (patch) | |
| tree | ae2d17aa40c17d67068e3c1d098ae4fbf80e7e0c | |
| parent | 2fa9e819fce8556cb8fed744e6b5e29f178cbf9c (diff) | |
coloration fix
| -rw-r--r-- | py3status/modules/bitcoin-price.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/py3status/modules/bitcoin-price.py b/py3status/modules/bitcoin-price.py index 53da320..41a446a 100644 --- a/py3status/modules/bitcoin-price.py +++ b/py3status/modules/bitcoin-price.py @@ -28,8 +28,8 @@ class Py3status: """ cache_timeout = 900 color_index = -1 - field = 'closse' - markets = 'btceEUR, btcdeEUR' + field = 'close' + markets = 'btceUSD' symbols = True def __init__(self): @@ -74,7 +74,8 @@ class Py3status: market = market.strip() try: rate = self._get_price(data, market, self.field) - if i == self.color_index: # coloration + # coloration + if i == self.color_index or len(markets) == 1: color_rate = rate except KeyError: continue |
