fix(db): update Pydantic model to allow any type for 'note' field

This commit is contained in:
InfinityPacer
2024-10-01 15:20:30 +08:00
parent 7473f0ba27
commit a25ff4302d
4 changed files with 9 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
import json
from typing import Optional, List, Dict
from typing import Optional, List, Dict, Any
from pydantic import BaseModel, validator
@@ -46,7 +46,7 @@ class Subscribe(BaseModel):
# 缺失集数
lack_episode: Optional[int] = 0
# 附加信息
note: Optional[str] = None
note: Optional[Any] = None
# 状态N-新建, R-订阅中
state: Optional[str] = None
# 最后更新时间