Fix dbrand config error

This commit is contained in:
Zeva Rose 2022-05-03 01:09:10 -06:00
parent 8226320640
commit cd78b0e002

View file

@ -13,7 +13,7 @@ from naff.models.naff.application_commands import (
from naff.models.naff.command import cooldown from naff.models.naff.command import cooldown
from naff.models.naff.cooldowns import Buckets from naff.models.naff.cooldowns import Buckets
from jarvis.config import get_config from jarvis.config import JarvisConfig
from jarvis.data.dbrand import shipping_lookup from jarvis.data.dbrand import shipping_lookup
from jarvis.utils import build_embed from jarvis.utils import build_embed
@ -33,7 +33,7 @@ class DbrandCog(Cog):
self.base_url = "https://dbrand.com/" self.base_url = "https://dbrand.com/"
self._session = aiohttp.ClientSession() self._session = aiohttp.ClientSession()
self._session.headers.update({"Content-Type": "application/json"}) self._session.headers.update({"Content-Type": "application/json"})
self.api_url = get_config().urls["dbrand_shipping"] self.api_url = JarvisConfig.from_yaml().urls["dbrand_shipping"]
self.cache = {} self.cache = {}
def __del__(self): def __del__(self):