Skip to content

Commit e575172

Browse files
committed
fix: 配置文件多了个空格导致的问题
1 parent 43ae562 commit e575172

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def load_config():
116116
else config_data["notification"]
117117
.get("push_window", {})
118118
.get("once_per_day", True),
119-
"RECORD_RETENTION_DAYS": int(os.environ.get("PUSH_WINDOW_RETENTION_DAYS", "0"))
119+
"RECORD_RETENTION_DAYS": int(
120+
os.environ.get("PUSH_WINDOW_RETENTION_DAYS", "").strip() or "0"
121+
)
120122
or config_data["notification"]
121123
.get("push_window", {})
122124
.get("push_record_retention_days", 7),

0 commit comments

Comments
 (0)