From 5cffef3fac1383144cfa92272652c5e3cd032dfe Mon Sep 17 00:00:00 2001 From: vladvildanov Date: Tue, 24 Sep 2024 09:21:33 +0300 Subject: [PATCH] Reverted parsing changes --- redis/commands/search/commands.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/redis/commands/search/commands.py b/redis/commands/search/commands.py index f203a0260c..da79016ad4 100644 --- a/redis/commands/search/commands.py +++ b/redis/commands/search/commands.py @@ -101,15 +101,7 @@ def _parse_profile(self, res, **kwargs): with_scores=query._with_scores, ) - docs = {} - for i in range(0, len(res[1]), 2): - if isinstance(res[1][i + 1], list): - for item in res[1][i + 1]: - res[1][i + 1] = parse_to_dict(item) - - docs[res[1][i]] = res[1][i + 1] - - return result, docs + return result, parse_to_dict(res[1]) def _parse_spellcheck(self, res, **kwargs): corrections = {}