feat: Check serialization for AWEL operator function

This commit is contained in:
Fangyin Cheng
2024-09-04 22:08:55 +08:00
parent b1ca247419
commit f8ce7d4580
12 changed files with 236 additions and 4 deletions

View File

@@ -285,6 +285,9 @@ class BaseDao(Generic[T, REQ, RES]):
else model_to_dict(query_request)
)
for key, value in query_dict.items():
if value and isinstance(value, (list, tuple, dict, set)):
# Skip the list, tuple, dict, set
continue
if value is not None and hasattr(model_cls, key):
if isinstance(value, list):
if len(value) > 0: