feat 洗版设置

This commit is contained in:
jxxghp
2023-07-27 12:58:08 +08:00
parent f9d3b4826a
commit f912ada68c
2 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,10 @@ class Subscribe(Base):
username = Column(String)
# 订阅站点
sites = Column(String)
# 是否洗版
best_version = Column(Integer, default=0)
# 当前优先级
current_priority = Column(Integer)
@staticmethod
def exists(db: Session, tmdbid: int, season: int = None):

View File

@ -47,6 +47,10 @@ class Subscribe(BaseModel):
username: Optional[str] = None
# 订阅站点
sites: Optional[List[int]] = None
# 是否洗版
best_version: Optional[int] = 0
# 当前优先级
current_priority: Optional[int] = None
class Config:
orm_mode = True