mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-29 02:57:22 +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:
|
async def get(self, key: str) -> dict:
|
||||||
qname = f"{self.qname}:{key}"
|
qname = f"{self.qname}:{key}"
|
||||||
data = await self.client.get(qname)
|
result = json.loads(await self.client.get(qname))
|
||||||
json_data = str(data, encoding="utf-8")
|
|
||||||
result = json.loads(json_data)
|
|
||||||
if isinstance(result, list) and len(result) > 0:
|
if isinstance(result, list) and len(result) > 0:
|
||||||
for num, item in enumerate(result):
|
for num, item in enumerate(result):
|
||||||
result[num] = json.loads(item)
|
result[num] = json.loads(item)
|
||||||
|
Loading…
Reference in New Issue
Block a user