fix: 配置文件多了个空格导致的问题

This commit is contained in:
sansan 2025-11-12 20:49:07 +08:00
parent 5974c8e376
commit a6c899d5d3

View File

@ -116,7 +116,9 @@ def load_config():
else config_data["notification"] else config_data["notification"]
.get("push_window", {}) .get("push_window", {})
.get("once_per_day", True), .get("once_per_day", True),
"RECORD_RETENTION_DAYS": int(os.environ.get("PUSH_WINDOW_RETENTION_DAYS", "0")) "RECORD_RETENTION_DAYS": int(
os.environ.get("PUSH_WINDOW_RETENTION_DAYS", "").strip() or "0"
)
or config_data["notification"] or config_data["notification"]
.get("push_window", {}) .get("push_window", {})
.get("push_record_retention_days", 7), .get("push_record_retention_days", 7),