From 54ea7b51577dbe9f97138ddfe7760152e41d8d31 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 25 Mar 2026 13:24:08 +0800 Subject: [PATCH] bugfix --- pricing/pricing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index d87efe8..7757aec 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -150,8 +150,8 @@ def check_value(field, spec_value, data_value): return data_value in arr mode = field.value_mode - if not mode: - mode = '=' + if not mode or mode == '=': + mode = '==' script = f'{data_value} {mode} {typevalue(spec_value, field.type)}' x = eval(script) return x