mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
♻ 撤回 781dd99a
修改
This commit is contained in:
parent
77fc4d3358
commit
6aa6d68770
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user