fix warning

This commit is contained in:
jxxghp 2024-02-25 09:11:47 +08:00
parent 1dd9228d01
commit 7d76ee2e65
3 changed files with 2 additions and 4 deletions

View File

@ -7,8 +7,8 @@ from app.core.plugin import PluginManager
from app.core.security import verify_token
from app.db.systemconfig_oper import SystemConfigOper
from app.helper.plugin import PluginHelper
from app.schemas.types import SystemConfigKey
from app.scheduler import Scheduler
from app.schemas.types import SystemConfigKey
router = APIRouter()
@ -118,7 +118,7 @@ def plugin_page(plugin_id: str, _: schemas.TokenPayload = Depends(verify_token))
@router.get("/reset/{plugin_id}", summary="重置插件配置", response_model=schemas.Response)
def reset_plugin(plugin_id: str, _: schemas.TokenPayload = Depends(verify_token)) -> List[dict]:
def reset_plugin(plugin_id: str, _: schemas.TokenPayload = Depends(verify_token)) -> Any:
"""
根据插件ID重置插件配置
"""

View File

@ -4,7 +4,6 @@ from fastapi import APIRouter, BackgroundTasks, Request, Depends
from app import schemas
from app.chain.webhook import WebhookChain
from app.core.config import settings
from app.core.security import verify_uri_token
router = APIRouter()

View File

@ -1,4 +1,3 @@
from pathlib import Path
from typing import List
from app.db import DbOper