diff --git a/pybitblock/ppi.py b/pybitblock/ppi.py index f90a682..5abf8a5 100644 --- a/pybitblock/ppi.py +++ b/pybitblock/ppi.py @@ -353,7 +353,7 @@ def mtclock(): pickle.dump(settingsClock, open("config/pyblocksettingsClock.conf", "wb")) clear() r = requests.get('https://bitcoinexplorer.org/api/price/sats/') - r.headers['Content-Type'] + r.json()["usd"] n = r.text di = json.loads(n) a = di @@ -365,7 +365,7 @@ def mtclock(): while True: x = b r = requests.get('https://bitcoinexplorer.org/api/price/sats/') - r.headers['Content-Type'] + r.json()["usd"] n = r.text di = json.loads(n) a = di