Skip to content

Commit

Permalink
feat RSS增加过滤规则开关
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Aug 12, 2023
1 parent bfc72be commit c7a5c5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alembic/versions/ec5fb51fc300_1_0_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def upgrade() -> None:
try:
with op.batch_alter_table("transferhistory") as batch_op:
batch_op.add_column(sa.Column('files', sa.String, nullable=True))
with op.batch_alter_table("rss") as batch_op:
batch_op.add_column(sa.Column('filter', sa.Integer, nullable=True))
except Exception as e:
pass
# ### end Alembic commands ###
Expand Down
2 changes: 2 additions & 0 deletions app/db/models/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class Rss(Base):
best_version = Column(Integer)
# 是否使用代理服务器
proxy = Column(Integer)
# 是否使用过滤规则
filter = Column(Integer)
# 保存路径
save_path = Column(String)
# 已处理数量
Expand Down
2 changes: 2 additions & 0 deletions app/schemas/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class Rss(BaseModel):
best_version: Optional[int]
# 是否使用代理服务器
proxy: Optional[int]
# 是否使用过滤规则
filter: Optional[int]
# 保存路径
save_path: Optional[str]
# 附加信息
Expand Down

0 comments on commit c7a5c5f

Please sign in to comment.