Patch/api v1.20.0 (#2618)
* chore(actions): show patch diff Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> * fix(chalice): fixed session's search ignore injected durations --------- Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> Co-authored-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
1f7d587796
commit
e9a9d2ff2a
1 changed files with 2 additions and 4 deletions
|
|
@ -777,10 +777,8 @@ class SessionsSearchPayloadSchema(_TimedSchema, _PaginatedSchema):
|
||||||
for f in values.get("filters", []):
|
for f in values.get("filters", []):
|
||||||
vals = []
|
vals = []
|
||||||
for v in f.get("value", []):
|
for v in f.get("value", []):
|
||||||
if f.get("type", "") == FilterType.DURATION.value \
|
if v is not None and (f.get("type", "") != FilterType.DURATION.value
|
||||||
and not v.isnumeric():
|
or str(v).isnumeric()):
|
||||||
continue
|
|
||||||
if v is not None:
|
|
||||||
vals.append(v)
|
vals.append(v)
|
||||||
f["value"] = vals
|
f["value"] = vals
|
||||||
return values
|
return values
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue