fix(chalice): support session's search null duration (#2806)
(cherry picked from commit e7ad4c8bd0)
This commit is contained in:
parent
4ec2dbfeca
commit
9d740c7bb2
1 changed files with 2 additions and 0 deletions
|
|
@ -754,6 +754,8 @@ class SessionsSearchPayloadSchema(_TimedSchema, _PaginatedSchema):
|
|||
for f in values.get("filters", []):
|
||||
vals = []
|
||||
for v in f.get("value", []):
|
||||
if f.get("type", "") == FilterType.DURATION.value and v is None:
|
||||
v = 0
|
||||
if v is not None and (f.get("type", "") != FilterType.DURATION.value
|
||||
or str(v).isnumeric()):
|
||||
vals.append(v)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue