fix add sub bug

This commit is contained in:
felinae98 2021-07-16 09:15:10 +08:00
parent 9074336843
commit 36632439ac
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ def do_add_sub(add_sub: Type[Matcher]):
state['_prompt'] = '请输入订阅用户的id详情查阅https://nonebot-hk-reporter.vercel.app/usage/#%E6%89%80%E6%94%AF%E6%8C%81%E5%B9%B3%E5%8F%B0%E7%9A%84uid'
else:
state['id'] = 'default'
state['name'] = await platform_manager[state['platform']].get_account_name(Target(''))
state['name'] = await platform_manager[state['platform']].get_target_name(Target(''))
async def parse_id(bot: Bot, event: Event, state: T_State):
target = str(event.get_message()).strip()

View File

@ -221,7 +221,7 @@ class UserCustomFilterMixin(CategoryMixin, ParsePostMixin, abstract=True):
res.append((user, user_post))
return res
class Platform(PlatformNameMixin, base=True):
class Platform(PlatformNameMixin, UserCustomFilterMixin, base=True):
# schedule_interval: int
schedule_type: Literal['date', 'interval', 'cron']