fix search issue

This commit is contained in:
2025-11-02 18:05:44 +02:00
parent 4fe190ddad
commit 025236013f

View File

@@ -159,7 +159,7 @@ class Home:
def on_search_btn_click(self, e):
search = self.searchbar.value
buffer = []
for product in self.products:
for product in self.products_manager.get_all():
if search.lower() in product['name'].lower():
buffer.append(product)
self.products_group.controls.clear()