From ffc1aaa030fb56156425305b2690b5db1a6cee81 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 23 Nov 2022 18:52:48 +0000 Subject: [PATCH] Mutate the response when reversing --- core/db/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/db/__init__.py b/core/db/__init__.py index 6658246..6352b0c 100644 --- a/core/db/__init__.py +++ b/core/db/__init__.py @@ -328,7 +328,7 @@ class StorageBackend(ABC): if kwargs.get("annotate"): annotate_results(response) if kwargs.get("reverse"): - response = response[::-1] + response.reverse() if kwargs.get("dedup"): if not kwargs.get("dedup_fields"): dedup_fields = ["msg", "nick", "ident", "host", "net", "channel"]