fix(chalice): fixed multi-metadata support (#2275)
(cherry picked from commit 6190a6b495)
This commit is contained in:
parent
22d1177eef
commit
60af1214f6
1 changed files with 3 additions and 1 deletions
|
|
@ -801,7 +801,9 @@ class SessionsSearchPayloadSchema(_TimedSchema, _PaginatedSchema):
|
|||
continue
|
||||
j = i + 1
|
||||
while j < len(values):
|
||||
if values[i].type == values[j].type:
|
||||
if values[i].type == values[j].type \
|
||||
and values[i].operator == values[j].operator \
|
||||
and (values[i].type != FilterType.metadata or values[i].source == values[j].source):
|
||||
values[i].value += values[j].value
|
||||
del values[j]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue