From 1b97fe8fe75d0e14ff3494540a8c1d67e2e17a14 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 25 Jun 2025 12:22:44 -0400 Subject: [PATCH] products s --- app/api/services/products.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app/api/services/products.py b/app/api/services/products.py index 6c989ef..3f5d405 100644 --- a/app/api/services/products.py +++ b/app/api/services/products.py @@ -59,25 +59,25 @@ class ProductsService(BaseService): # data = db.session.execute(PRODUCT_LIST) products = Products.get_user_product_list(member_id) - logger.info(f"Product Data ****** *****: {products_data}") - - products_data = [{ - 'id': t.id, - 'uid': t.uid, - 'product_id': t.product_id, - 'description': t.description, - 'name': t.name, - 'status': t.status, - 'created_at': t.created_at.isoformat() if t.created_at else None, - 'updated_at': t.updated_at.isoformat() if t.updated_at else None, - 'banner': t.banner, - } for t in products] - + logger.info(f"Product Data ****** *****: {products}") + # + # products_data = [{ + # 'id': t.id, + # 'uid': t.uid, + # 'product_id': t.product_id, + # 'description': t.description, + # 'name': t.name, + # 'status': t.status, + # 'created_at': t.created_at.isoformat() if t.created_at else None, + # 'updated_at': t.updated_at.isoformat() if t.updated_at else None, + # 'banner': t.banner, + # } for t in products] + # "products_data22": products_data, # Simulate processing response_data = { "products_data": products.to_dict(), - "products_data22": products_data, + "member_id": 0, "uid": 0, }