Fix deduplication function

This commit is contained in:
Mark Veidemanis 2022-12-09 07:20:59 +00:00
parent bd8b995134
commit 0a132c6e3a
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 3 additions and 2 deletions

View File

@ -334,6 +334,7 @@ class StorageBackend(ABC):
if not dedup_fields:
dedup_fields = ["msg", "nick", "ident", "host", "net", "channel"]
response = helpers.dedup_list(response, dedup_fields)
return response
@abstractmethod
def parse(self, response):

View File

@ -227,7 +227,7 @@ class DruidBackend(StorageBackend):
response = self.query(request.user, search_query)
# A/D/R - Annotate/Dedup/Reverse
self.process_results(
response = self.process_results(
response,
annotate=annotate,
dedup=dedup,

View File

@ -325,7 +325,7 @@ class ElasticsearchBackend(StorageBackend):
return response
# A/D/R - Annotate/Dedup/Reverse
self.process_results(
response["object_list"] = self.process_results(
response["object_list"],
annotate=annotate,
dedup=dedup,