|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# Copyright (c) 2020, The Monero Project.
|
|
|
|
|
# Copyright (c) 2020, dsc@xmr.pm
|
|
|
|
|
|
|
|
|
|
import json
|
|
|
|
|
import json, asyncio
|
|
|
|
|
from typing import List, Union
|
|
|
|
|
|
|
|
|
|
import settings
|
|
|
|
@ -12,7 +12,7 @@ from wowlet_backend.factory import cache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CryptoRatesTask(WowletTask):
|
|
|
|
|
def __init__(self, interval: int = 360):
|
|
|
|
|
def __init__(self, interval: int = 600):
|
|
|
|
|
super(CryptoRatesTask, self).__init__(interval)
|
|
|
|
|
|
|
|
|
|
self._cache_key = "crypto_rates"
|
|
|
|
@ -90,4 +90,5 @@ class CryptoRatesTask(WowletTask):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
rates.append(obj)
|
|
|
|
|
await asyncio.sleep(10)
|
|
|
|
|
return rates
|
|
|
|
|