From a6c899d5d37c4c80916c9c61b868fcfc6782c37a Mon Sep 17 00:00:00 2001 From: sansan <77180927+sansan0@users.noreply.github.com> Date: Wed, 12 Nov 2025 20:49:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=9A=E4=BA=86=E4=B8=AA=E7=A9=BA=E6=A0=BC=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index be42c8a..7880b5a 100644 --- a/main.py +++ b/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),