Skip to content

Commit 65fdf00

Browse files
committed
fix: 为customOrder字段添加默认值
- 在download/base.py中,当数据中不存在customOrder字段时,设置默认值为999999999 - 更新pyproject.toml中的版本号从1.1.37到1.1.38 此修复确保在解析源数据时,即使缺少customOrder字段也能正常处理,避免可能的错误。版本号更新反映了此次代码变更。
1 parent e53aef5 commit 65fdf00

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "funread"
3-
version = "1.1.37"
3+
version = "1.1.38"
44
description = "一个用于管理和处理阅读源(Legado 阅读 APP 的书源和 RSS 源)的 Python 工具库"
55
readme = "README.md"
66
requires-python = ">=3.8"

src/funread/legado/manage/download/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ def export_sources(self, size: int = 1000) -> Iterator[List[Dict[str, Any]]]:
332332
)
333333
if "customOrder" in data:
334334
source["customOrder"] = data["customOrder"]
335+
else:
336+
source["customOrder"] = 999999999
335337
dd.append(source)
336338
if len(dd) >= size:
337339
yield dd

0 commit comments

Comments
 (0)