mirror of
https://gitee.com/houhuan/TrendRadar.git
synced 2025-12-21 11:17:15 +08:00
fix: 配置文件多了个空格导致的问题
This commit is contained in:
parent
5974c8e376
commit
a6c899d5d3
4
main.py
4
main.py
@ -116,7 +116,9 @@ def load_config():
|
||||
else config_data["notification"]
|
||||
.get("push_window", {})
|
||||
.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"]
|
||||
.get("push_window", {})
|
||||
.get("push_record_retention_days", 7),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user