fix: get_can_save_from_save_expr的match转为str
This commit is contained in:
parent
cde15991a1
commit
783a56dfea
|
@ -64,7 +64,7 @@ def get_can_save_from_save_expr(expr_str: str, self_val) -> bool:
|
||||||
if current_val is None:
|
if current_val is None:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
expr_str = expr_str.replace(f"{{{match}}}", current_val)
|
expr_str = expr_str.replace(f"{{{match}}}", str(current_val))
|
||||||
try:
|
try:
|
||||||
rval = eval(expr_str)
|
rval = eval(expr_str)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue