From 0d4aa14e59afcc20dcf30f51d224f4ba9e919141 Mon Sep 17 00:00:00 2001 From: André Doser Date: Wed, 28 Jan 2015 09:54:58 +0100 Subject: coloration fix --- py3status/modules/bitcoin-price.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'py3status/modules') 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 -- cgit v1.3