From a7cd228981c8a89db6a316ee63d9362818e8aaf4 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Thu, 15 Jun 2023 21:59:24 +0200 Subject: [PATCH] Update ppi.py --- pybitblock/ppi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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