fix: 移除inline DictObject import避免local variable错误

This commit is contained in:
yumoqing 2026-07-07 15:58:27 +08:00
parent 2b8f057096
commit 485ecf343e

View File

@ -641,7 +641,6 @@ order by b.enabled_date desc"""
f = d.fields.get(fk)
if not f:
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
@ -692,7 +691,6 @@ order by b.enabled_date desc"""
f = d.fields.get(fk)
if not f:
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