products s
This commit is contained in:
@@ -59,25 +59,25 @@ class ProductsService(BaseService):
|
|||||||
# data = db.session.execute(PRODUCT_LIST)
|
# data = db.session.execute(PRODUCT_LIST)
|
||||||
products = Products.get_user_product_list(member_id)
|
products = Products.get_user_product_list(member_id)
|
||||||
|
|
||||||
logger.info(f"Product Data ****** *****: {products_data}")
|
logger.info(f"Product Data ****** *****: {products}")
|
||||||
|
#
|
||||||
products_data = [{
|
# products_data = [{
|
||||||
'id': t.id,
|
# 'id': t.id,
|
||||||
'uid': t.uid,
|
# 'uid': t.uid,
|
||||||
'product_id': t.product_id,
|
# 'product_id': t.product_id,
|
||||||
'description': t.description,
|
# 'description': t.description,
|
||||||
'name': t.name,
|
# 'name': t.name,
|
||||||
'status': t.status,
|
# 'status': t.status,
|
||||||
'created_at': t.created_at.isoformat() if t.created_at else None,
|
# 'created_at': t.created_at.isoformat() if t.created_at else None,
|
||||||
'updated_at': t.updated_at.isoformat() if t.updated_at else None,
|
# 'updated_at': t.updated_at.isoformat() if t.updated_at else None,
|
||||||
'banner': t.banner,
|
# 'banner': t.banner,
|
||||||
} for t in products]
|
# } for t in products]
|
||||||
|
# "products_data22": products_data,
|
||||||
|
|
||||||
# Simulate processing
|
# Simulate processing
|
||||||
response_data = {
|
response_data = {
|
||||||
"products_data": products.to_dict(),
|
"products_data": products.to_dict(),
|
||||||
"products_data22": products_data,
|
|
||||||
"member_id": 0,
|
"member_id": 0,
|
||||||
"uid": 0,
|
"uid": 0,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user