From 2a36a9a6ceb0f5333910eda387516439ccee04f4 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 19 May 2019 22:05:49 +0200 Subject: [PATCH] Implemented availability --- Calendar/GeckoCrypto.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Calendar/GeckoCrypto.py b/Calendar/GeckoCrypto.py index 051c5f7..0a2eed9 100644 --- a/Calendar/GeckoCrypto.py +++ b/Calendar/GeckoCrypto.py @@ -5,7 +5,7 @@ from urllib.request import urlopen import json import math -api_test_url = "https://www.coingecko.com" +api_test_url = "https://api.coingecko.com/api/v3/ping" api_url = "https://api.coingecko.com/api/v3/" api_metadata_url = api_url + "coins/list" api_price_url = api_url + "simple/price" @@ -19,7 +19,6 @@ class GeckoCrypto(CryptoInterface): super(GeckoCrypto, self).__init__() def is_available(self): - return True try: urlopen(api_test_url) return True