bugfix
This commit is contained in:
parent
54ea7b5157
commit
aad9102a88
@ -152,8 +152,12 @@ def check_value(field, spec_value, data_value):
|
|||||||
mode = field.value_mode
|
mode = field.value_mode
|
||||||
if not mode or mode == '=':
|
if not mode or mode == '=':
|
||||||
mode = '=='
|
mode = '=='
|
||||||
script = f'{data_value} {mode} {typevalue(spec_value, field.type)}'
|
ns = {
|
||||||
x = eval(script)
|
"a": data_value
|
||||||
|
"b": typevalue(spec_value, field.type)
|
||||||
|
}
|
||||||
|
script = f'a {mode} b'
|
||||||
|
x = eval(script, ns)
|
||||||
return x
|
return x
|
||||||
|
|
||||||
class PricingProgram:
|
class PricingProgram:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user