Skip to content

Commit

Permalink
return all keys irrespective of Null
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 179bb36 commit 528364c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions liteindex/defined_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ def get(self, ids, select_keys=[]):
record = {
self.key_hash_to_original_key[h]: val
for h, val in zip(select_keys, row[1:])
if val is not None
}
for k, v in record.items():
if v is None:
Expand Down Expand Up @@ -365,9 +364,10 @@ def search(
record = {
self.key_hash_to_original_key[h]: val
for h, val in zip(self.original_key_to_key_hash.values(), result[2:])
if val is not None
}
for k, v in record.items():
if v is None:
continue
if self.schema[k] == "other":
record[k] = pickle.loads(v)
elif self.schema[k] == "datetime":
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.dev9"
VERSION = "0.0.2.dev10"

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

0 comments on commit 528364c

Please sign in to comment.