fix: get_can_save_from_save_expr的match转为str

This commit is contained in:
caoqianming 2025-04-02 09:32:33 +08:00
parent cde15991a1
commit 783a56dfea
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ def get_can_save_from_save_expr(expr_str: str, self_val) -> bool:
if current_val is None:
return True
else:
expr_str = expr_str.replace(f"{{{match}}}", current_val)
expr_str = expr_str.replace(f"{{{match}}}", str(current_val))
try:
rval = eval(expr_str)
except Exception as e: