mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
🚨 fix lint err
This commit is contained in:
parent
9ee299813b
commit
c21b24b385
@ -414,13 +414,13 @@ class SimplePost(NewMessage, abstract=True):
|
|||||||
|
|
||||||
async def _handle_new_post(
|
async def _handle_new_post(
|
||||||
self,
|
self,
|
||||||
new_posts: list[RawPost],
|
post_list: list[RawPost],
|
||||||
sub_unit: SubUnit,
|
sub_unit: SubUnit,
|
||||||
) -> list[tuple[PlatformTarget, list[Post]]]:
|
) -> list[tuple[PlatformTarget, list[Post]]]:
|
||||||
if not new_posts:
|
if not post_list:
|
||||||
return []
|
return []
|
||||||
else:
|
else:
|
||||||
for post in new_posts:
|
for post in post_list:
|
||||||
logger.info(
|
logger.info(
|
||||||
"fetch new post from {} {}: {}".format(
|
"fetch new post from {} {}: {}".format(
|
||||||
self.platform_name,
|
self.platform_name,
|
||||||
@ -428,7 +428,7 @@ class SimplePost(NewMessage, abstract=True):
|
|||||||
self.get_id(post),
|
self.get_id(post),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
res = await self.dispatch_user_post(new_posts, sub_unit)
|
res = await self.dispatch_user_post(post_list, sub_unit)
|
||||||
self.parse_cache = {}
|
self.parse_cache = {}
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user