Skip to content

Commit

Permalink
feat: add search_imdbid for subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
WangEdward committed Feb 23, 2024
1 parent 06c3985 commit d28f3ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/db/models/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class Subscribe(Base):
current_priority = Column(Integer)
# 保存路径
save_path = Column(String)
# 是否使用 imdbid 搜索
search_imdbid = Column(Integer, default=0)

@staticmethod
@db_query
Expand Down
2 changes: 2 additions & 0 deletions app/schemas/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class Subscribe(BaseModel):
current_priority: Optional[int] = None
# 保存路径
save_path: Optional[str] = None
# 是否使用 imdbid 搜索
search_imdbid: Optional[int] = 0

class Config:
orm_mode = True

0 comments on commit d28f3ed

Please sign in to comment.