mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-06 20:06:12 +08:00
* 🎨 修改 nonebot_bison 目录位置 * auto fix by pre-commit hooks * 🚚 fix frontend build target * 🚚 use soft link * Revert "🚚 use soft link" This reverts commit de21f79d5ae1bd5515b04f42a4138cb25ddf3e62. * 🚚 modify dockerfile --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: felinae98 <731499577@qq.com>
13 lines
471 B
Python
13 lines
471 B
Python
from .platform import platform_manager
|
|
from .scheduler import scheduler_dict
|
|
from .types import Target
|
|
|
|
|
|
async def check_sub_target(platform_name: str, target: Target):
|
|
platform = platform_manager[platform_name]
|
|
scheduler_conf_class = platform.scheduler
|
|
scheduler = scheduler_dict[scheduler_conf_class]
|
|
client = await scheduler.scheduler_config_obj.get_query_name_client()
|
|
|
|
return await platform_manager[platform_name].get_target_name(client, target)
|