mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 19:36:43 +08:00
modify get top algo
This commit is contained in:
parent
382521e6f7
commit
dc6a4511eb
@ -80,8 +80,7 @@ class Weibo(Platform):
|
|||||||
if raw_post['card_type'] == 9:
|
if raw_post['card_type'] == 9:
|
||||||
if raw_post['mblog'].get('isTop'):
|
if raw_post['mblog'].get('isTop'):
|
||||||
return raw_post
|
return raw_post
|
||||||
else:
|
return None
|
||||||
return None
|
|
||||||
|
|
||||||
async def filter_common(self, target: Target, raw_post_list: list[RawPost]) -> list[RawPost]:
|
async def filter_common(self, target: Target, raw_post_list: list[RawPost]) -> list[RawPost]:
|
||||||
if not self.inited.get(target, False):
|
if not self.inited.get(target, False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user