mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-07-17 23:33:00 +08:00
fix ak err
This commit is contained in:
parent
52498b3603
commit
6683539ea9
@ -17,7 +17,7 @@ class Arknights(metaclass=Singleton):
|
|||||||
|
|
||||||
async def get_announce_list(self):
|
async def get_announce_list(self):
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
raw_data = client.get('http://ak-fs.hypergryph.com/announce/IOS/announcement.meta.json')
|
raw_data = await client.get('http://ak-fs.hypergryph.com/announce/IOS/announcement.meta.json')
|
||||||
return json.loads(raw_data.text)
|
return json.loads(raw_data.text)
|
||||||
|
|
||||||
async def filter(self, announce_data, inited=False) -> list[Post]:
|
async def filter(self, announce_data, inited=False) -> list[Post]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user