fix
This commit is contained in:
@ -5,7 +5,6 @@ from fastapi import APIRouter, Depends, HTTPException
|
||||
from app import schemas
|
||||
from app.chain.douban import DoubanChain
|
||||
from app.chain.search import SearchChain
|
||||
from app.core.context import Context
|
||||
from app.core.security import verify_token
|
||||
from app.schemas.types import MediaType
|
||||
|
||||
|
@ -75,8 +75,7 @@ def cookie_cloud_sync(background_tasks: BackgroundTasks,
|
||||
|
||||
|
||||
@router.get("/reset", summary="重置站点", response_model=schemas.Response)
|
||||
def cookie_cloud_sync(background_tasks: BackgroundTasks,
|
||||
db: Session = Depends(get_db),
|
||||
def cookie_cloud_sync(db: Session = Depends(get_db),
|
||||
_: schemas.TokenPayload = Depends(verify_token)) -> Any:
|
||||
"""
|
||||
清空所有站点数据并重新同步CookieCloud站点信息
|
||||
|
@ -43,7 +43,7 @@ def create_user(
|
||||
user_info["hashed_password"] = get_password_hash(user_info["password"])
|
||||
user_info.pop("password")
|
||||
user = User(**user_info)
|
||||
user = user.create(db)
|
||||
user.create(db)
|
||||
return schemas.Response(success=True)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user