fix search issue
This commit is contained in:
@@ -159,7 +159,7 @@ class Home:
|
|||||||
def on_search_btn_click(self, e):
|
def on_search_btn_click(self, e):
|
||||||
search = self.searchbar.value
|
search = self.searchbar.value
|
||||||
buffer = []
|
buffer = []
|
||||||
for product in self.products:
|
for product in self.products_manager.get_all():
|
||||||
if search.lower() in product['name'].lower():
|
if search.lower() in product['name'].lower():
|
||||||
buffer.append(product)
|
buffer.append(product)
|
||||||
self.products_group.controls.clear()
|
self.products_group.controls.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user