⬆️ upgrade nonebot_plugin_saa

This commit is contained in:
felinae98
2023-11-21 21:04:47 +08:00
parent ae9ac9920c
commit badb26419e
9 changed files with 388 additions and 373 deletions
+1 -1
View File
@@ -4,8 +4,8 @@ from fastapi.routing import APIRouter
from fastapi.param_functions import Depends
from fastapi.exceptions import HTTPException
from nonebot_plugin_saa import TargetQQGroup
from nonebot_plugin_saa.auto_select_bot import get_bot
from fastapi.security.oauth2 import OAuth2PasswordBearer
from nonebot_plugin_saa.utils.auto_select_bot import get_bot
from ..types import WeightConfig
from ..apis import check_sub_target
+1 -1
View File
@@ -1,8 +1,8 @@
import datetime
from pathlib import Path
from nonebot_plugin_saa import PlatformTarget
from sqlalchemy.dialects.postgresql import JSONB
from nonebot_plugin_saa.utils import PlatformTarget
from nonebot_plugin_datastore import get_plugin_data
from sqlalchemy.orm import Mapped, relationship, mapped_column
from sqlalchemy import JSON, String, ForeignKey, UniqueConstraint
@@ -1,7 +1,7 @@
from abc import ABC
from pydantic import BaseModel
from nonebot_plugin_saa.utils import AllSupportedPlatformTarget as UserInfo
from nonebot_plugin_saa.registries import AllSupportedPlatformTarget as UserInfo
from ....types import Tag, Category
@@ -5,7 +5,7 @@ from functools import partial
from nonebot.log import logger
from pydantic import BaseModel
from nonebot_plugin_saa.utils import AllSupportedPlatformTarget
from nonebot_plugin_saa.registries import AllSupportedPlatformTarget
from ..utils import NBESFParseErr
from ....types import Tag, Category
+1 -1
View File
@@ -4,7 +4,7 @@ from dataclasses import field, dataclass
from PIL import Image
from nonebot.log import logger
import nonebot_plugin_saa as saa
from nonebot_plugin_saa.utils import MessageSegmentFactory
from nonebot_plugin_saa import MessageSegmentFactory
from ..utils import parse_text, http_client
from .abstract_post import BasePost, AbstractPost
+1 -1
View File
@@ -2,8 +2,8 @@ import asyncio
from collections import deque
from nonebot.log import logger
from nonebot_plugin_saa.auto_select_bot import refresh_bots
from nonebot.adapters.onebot.v11.exception import ActionFailed
from nonebot_plugin_saa.utils.auto_select_bot import refresh_bots
from nonebot_plugin_saa import MessageFactory, PlatformTarget, AggregatedMessageFactory
from .plugin_config import plugin_config