diff --git a/jarvis/cogs/dbrand.py b/jarvis/cogs/dbrand.py index 4f4d164..e7bbd2e 100644 --- a/jarvis/cogs/dbrand.py +++ b/jarvis/cogs/dbrand.py @@ -73,15 +73,14 @@ class DbrandCog(commands.Cog): if len(matches) > 0: search = matches[0] dest = search - if not self.cache.contains(dest): + data = self.cache.get(dest, None) + if not data: api_link = self.api_url + dest data = await self._session.get(api_link) if 200 <= data.status < 400: data = await data.json() else: data = None - self.cache.update(dest) - data = self.cache.get(dest) fields = None if ( data is not None