Skip to content

Commit

Permalink
Reverted parsing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vladvildanov committed Sep 24, 2024
1 parent 43fe5f4 commit 5cffef3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions redis/commands/search/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 5cffef3

Please sign in to comment.