Skip to content

Commit

Permalink
fix sort_by
Browse files Browse the repository at this point in the history
Signed-off-by: Praneeth Bedapudi <praneeth@bpraneeth.com>
  • Loading branch information
bedapudi6788 committed Oct 30, 2023
1 parent 8445c25 commit c7e3586
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion liteindex/defined_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,10 @@ def search(
}:
raise ValueError("Invalid sort_by")

if self.schema[sort_by] == "blob":
elif self.schema[sort_by] == "blob":
sort_by = f"__size_{self.original_key_to_key_hash[sort_by]}"
else:
sort_by = self.original_key_to_key_hash[sort_by]

if not select_keys:
select_keys = list(self.original_key_to_key_hash)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
EMAIL = "praneeth@bpraneeth.com"
AUTHOR = "BEDAPUDI PRANEETH"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "0.0.2.dev6"
VERSION = "0.0.2.dev7"

# What packages are required for this module to be executed?
REQUIRED = [
Expand Down

0 comments on commit c7e3586

Please sign in to comment.