From 3e0f462946484ef16a4c052b9a2bd029e664ff78 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 24 Jun 2025 19:07:32 -0400 Subject: [PATCH] all products --- app/api/services/products.py | 2 +- app/models/products.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/services/products.py b/app/api/services/products.py index 442569d..0b7db6f 100644 --- a/app/api/services/products.py +++ b/app/api/services/products.py @@ -61,7 +61,7 @@ class ProductsService(BaseService): # Simulate processing response_data = { - "data": data.fetchall(), + "data": data, "member_id": 0, "uid": 0, } diff --git a/app/models/products.py b/app/models/products.py index d96c2ac..e58a6ea 100644 --- a/app/models/products.py +++ b/app/models/products.py @@ -46,7 +46,7 @@ class Products(db.Model): # id > 0 # ).all() # - product_list = cls.query.all() + product_list = cls.query.all() return product_list