products s
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user