Allow duplicate tag keys

This commit is contained in:
2022-09-30 07:22:22 +01:00
parent 8010ebf2c1
commit 835be7e001
2 changed files with 5 additions and 4 deletions

View File

@@ -110,8 +110,9 @@ class StorageBackend(object):
if not query_created:
search_query = self.construct_query(None, size, index, blank=True)
query_created = True
for tagname, tagvalue in tags.items():
add_bool.append({tagname: tagvalue})
for item in tags:
for tagname, tagvalue in item.items():
add_bool.append({tagname: tagvalue})
valid = self.check_valid_query(query_params, custom_query)
if isinstance(valid, dict):