products_data

This commit is contained in:
CHIEFSOFT\ameye
2025-06-25 12:10:27 -04:00
parent a5f3fe6637
commit 5a8ca672b7
2 changed files with 17 additions and 3 deletions
+16 -2
View File
@@ -59,11 +59,25 @@ class ProductsService(BaseService):
# data = db.session.execute(PRODUCT_LIST)
products_data = Products.get_user_product_list(member_id)
logger.error(f"Product Data ****** *****: {products_data}")
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]
# Simulate processing
response_data = {
"products_data": data,
"products_data": products.to_dict(),
"products_data22": products_data,
"member_id": 0,
"uid": 0,
}
+1 -1
View File
@@ -73,8 +73,8 @@ class Products(db.Model):
'id': self.id,
'uid': self.uid,
'product_id': self.product_id,
'productId': self.product_id,
'name': self.name,
'description' : self.description,
'status': self.status,
'added': self.added,
'updated': self.updated,