Fix deduplication function
This commit is contained in:
parent
bd8b995134
commit
0a132c6e3a
|
@ -334,6 +334,7 @@ class StorageBackend(ABC):
|
||||||
if not dedup_fields:
|
if not dedup_fields:
|
||||||
dedup_fields = ["msg", "nick", "ident", "host", "net", "channel"]
|
dedup_fields = ["msg", "nick", "ident", "host", "net", "channel"]
|
||||||
response = helpers.dedup_list(response, dedup_fields)
|
response = helpers.dedup_list(response, dedup_fields)
|
||||||
|
return response
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def parse(self, response):
|
def parse(self, response):
|
||||||
|
|
|
@ -227,7 +227,7 @@ class DruidBackend(StorageBackend):
|
||||||
response = self.query(request.user, search_query)
|
response = self.query(request.user, search_query)
|
||||||
|
|
||||||
# A/D/R - Annotate/Dedup/Reverse
|
# A/D/R - Annotate/Dedup/Reverse
|
||||||
self.process_results(
|
response = self.process_results(
|
||||||
response,
|
response,
|
||||||
annotate=annotate,
|
annotate=annotate,
|
||||||
dedup=dedup,
|
dedup=dedup,
|
||||||
|
|
|
@ -325,7 +325,7 @@ class ElasticsearchBackend(StorageBackend):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
# A/D/R - Annotate/Dedup/Reverse
|
# A/D/R - Annotate/Dedup/Reverse
|
||||||
self.process_results(
|
response["object_list"] = self.process_results(
|
||||||
response["object_list"],
|
response["object_list"],
|
||||||
annotate=annotate,
|
annotate=annotate,
|
||||||
dedup=dedup,
|
dedup=dedup,
|
||||||
|
|
Loading…
Reference in New Issue