@ -32,6 +32,7 @@ class Cache(object):
}
headers = {'accept': 'application/json'}
url = 'https://api.coingecko.com/api/v3/coins/wownero'
try:
r = r_get(url, headers=headers, data=data)
info = {
'genesis_date': r.json()['genesis_date'],
@ -44,5 +45,7 @@ class Cache(object):
self.store_data("coin_info", 15, json_dumps(info))
return info
except:
return {}
cache = Cache()