Use hash_key in query to filter returned items
This commit is contained in:
parent
e0f4c60796
commit
8612e9d782
@ -182,7 +182,11 @@ class Table(object):
|
||||
results = []
|
||||
last_page = True # Once pagination is implemented, change this
|
||||
|
||||
possible_results = list(self.all_items())
|
||||
if self.range_key_attr:
|
||||
possible_results = self.items[hash_key].values()
|
||||
else:
|
||||
possible_results = list(self.all_items())
|
||||
|
||||
if range_comparison:
|
||||
for result in possible_results:
|
||||
if result.range_key.compare(range_comparison, range_objs):
|
||||
|
Loading…
Reference in New Issue
Block a user