feat(filter): 添加配置监听和改进中字过滤规则

This commit is contained in:
Attente
2026-01-25 01:06:50 +08:00
parent cc4859950c
commit 8658942385
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ class DownloadFiles(Base):
@classmethod
@db_query
def get_by_hash(cls, db: Session, download_hash: str, state: Optional[int] = None):
if state:
if state is not None:
return db.query(cls).filter(cls.download_hash == download_hash,
cls.state == state).all()
else: