feat RSS增加过滤规则开关

This commit is contained in:
jxxghp 2023-08-12 18:34:01 +08:00
parent bfc72be90d
commit c7a5c5f55e
3 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,8 @@ def upgrade() -> None:
try: try:
with op.batch_alter_table("transferhistory") as batch_op: with op.batch_alter_table("transferhistory") as batch_op:
batch_op.add_column(sa.Column('files', sa.String, nullable=True)) 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: except Exception as e:
pass pass
# ### end Alembic commands ### # ### end Alembic commands ###

View File

@ -41,6 +41,8 @@ class Rss(Base):
best_version = Column(Integer) best_version = Column(Integer)
# 是否使用代理服务器 # 是否使用代理服务器
proxy = Column(Integer) proxy = Column(Integer)
# 是否使用过滤规则
filter = Column(Integer)
# 保存路径 # 保存路径
save_path = Column(String) save_path = Column(String)
# 已处理数量 # 已处理数量

View File

@ -37,6 +37,8 @@ class Rss(BaseModel):
best_version: Optional[int] best_version: Optional[int]
# 是否使用代理服务器 # 是否使用代理服务器
proxy: Optional[int] proxy: Optional[int]
# 是否使用过滤规则
filter: Optional[int]
# 保存路径 # 保存路径
save_path: Optional[str] save_path: Optional[str]
# 附加信息 # 附加信息