From 664f2f12d8d35559189d3bc6f63d2b8766f7a613 Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 10 Nov 2022 07:44:39 -0300 Subject: [PATCH] fix --- charts/asynchronous.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/asynchronous.py b/charts/asynchronous.py index 73221b5..a595cf8 100644 --- a/charts/asynchronous.py +++ b/charts/asynchronous.py @@ -12,7 +12,7 @@ import pygsheets # Asynchronous get block data from xmrchain #################################################################################### async def get_block_data(session, block: str): - url = 'https://xmrchain.net/api/block/' + block + url = 'https://blox.minexmr.com/api/block/' + block async with session.get(url) as res: data = await res.read() data = json.loads(data) @@ -27,7 +27,7 @@ async def get_block_data(session, block: str): # Asynchronous get network data from xmrchain #################################################################################### async def get_network_data(session, block: str): - url = 'https://xmrchain.net/api/networkinfo' + url = 'https://blox.minexmr.com/api/networkinfo' async with session.get(url) as res: data = await res.read() data = json.loads(data) @@ -174,7 +174,7 @@ async def update_xmr_data(yesterday, coin): name = coin.name Coin.objects.filter(name=coin.name).filter(date=yesterday).delete() - url = 'https://xmrchain.net/api/networkinfo' + url = 'https://blox.minexmr.com/api/networkinfo' response = requests.get(url) data = json.loads(response.text) height = int(data['data']['height'])