From 4642916fd5f94483f5c366968dd542a698d701e2 Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Mon, 18 May 2026 20:47:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(gui):=20=E4=BF=AE=E6=AD=A3=E7=BC=96?= =?UTF-8?q?=E6=8E=92=E7=AA=97=E5=8F=A3=E6=97=A5=E6=9C=9F=E6=98=A0=E5=B0=84?= =?UTF-8?q?=20CURRENT=5FDATE=20=E8=AF=AF=E8=AF=86=E5=88=AB=E4=B8=BA?= =?UTF-8?q?=E5=89=8D=E5=A4=A9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/ALAutoScriptOrchDialog/_helpers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/ALAutoScriptOrchDialog/_helpers.py b/src/gui/ALAutoScriptOrchDialog/_helpers.py index 220c7e8..b4ae601 100644 --- a/src/gui/ALAutoScriptOrchDialog/_helpers.py +++ b/src/gui/ALAutoScriptOrchDialog/_helpers.py @@ -321,11 +321,11 @@ class _DateInputContainer(QWidget): s = expr.strip().upper() _RELATIVE_MAP = { - "CURRENT_DATE": 0, "TODAY": 0, - "CURRENT_DATE + 1": 1, "TOMORROW": 1, - "CURRENT_DATE + 2": 2, - "CURRENT_DATE - 1": 3, - "CURRENT_DATE - 2": 4, + "CURRENT_DATE": 2, "TODAY": 2, + "CURRENT_DATE + 1": 3, "TOMORROW": 3, + "CURRENT_DATE + 2": 4, + "CURRENT_DATE - 1": 1, + "CURRENT_DATE - 2": 0, } idx = _RELATIVE_MAP.get(s) if idx is not None: