diff --git a/core/wiki/cache.py b/core/wiki/cache.py index 1b2498d..752ca69 100644 --- a/core/wiki/cache.py +++ b/core/wiki/cache.py @@ -23,9 +23,7 @@ class WikiCache: async def get(self, key: str) -> dict: qname = f"{self.qname}:{key}" - data = await self.client.get(qname) - json_data = str(data, encoding="utf-8") - result = json.loads(json_data) + result = json.loads(await self.client.get(qname)) if isinstance(result, list) and len(result) > 0: for num, item in enumerate(result): result[num] = json.loads(item)