From 2b8f057096cf64cb1842406452f884137c5e899d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 7 Jul 2026 15:54:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20fields=E6=9C=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=97=B6=E8=87=AA=E5=8A=A8=E6=A3=80=E6=B5=8Bbetween=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=AC=A6=EF=BC=8C=E9=81=BF=E5=85=8D=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E8=A2=AB=E8=B7=B3=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pricing/pricing.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index fa649ef..389def1 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -640,7 +640,11 @@ order by b.enabled_date desc""" continue f = d.fields.get(fk) if not f: - continue + if isinstance(fv, str) and any(op in fv for op in ('~=', '=~', '~', '=~=')): + from appPublic.dictObject import DictObject + f = DictObject(type='float', value_mode='between') + else: + continue data_value = config_data.get(fk) data_value = data_mapping(d, fk, data_value) if data_value is None: @@ -687,7 +691,11 @@ order by b.enabled_date desc""" continue f = d.fields.get(fk) if not f: - continue + if isinstance(fv, str) and any(op in fv for op in ('~=', '=~', '~', '=~=')): + from appPublic.dictObject import DictObject + f = DictObject(type='float', value_mode='between') + else: + continue data_value = config_data.get(fk) data_value = data_mapping(d, fk, data_value) if data_value is None: