New data
This commit is contained in:
@@ -7,7 +7,7 @@ from marshmallow import ValidationError
|
||||
from app.api.enums import TransactionType
|
||||
from app.api.integrations import SimbrellaIntegration
|
||||
from app.extensions import db
|
||||
from app.models import MembersProducts, Products, Members
|
||||
from app.models import MembersProducts, Products, Members, ProductsDetails
|
||||
|
||||
from app.api.services.offer_analysis import OfferAnalysis
|
||||
from app.api.helpers.response_helper import ResponseHelper
|
||||
@@ -56,16 +56,17 @@ class MyProductsService(BaseService):
|
||||
|
||||
|
||||
merms_panel=#
|
||||
|
||||
"Product Description - Commitment is something that comes from understanding that everything has its price and then having the willingness to pay that price. This is important because nobody wants to put significant effort into something, only to find out after the fact that the price was too high.The price is something not necessarily defined as financial. It could be time, effort, sacrifice, money or perhaps, something else.",
|
||||
|
||||
|
||||
'''
|
||||
product_data = Products.get_product_by_product_id(product_id)
|
||||
|
||||
product_description = ProductsDetails.get_product_desctiption_by_product_id('A000002')
|
||||
# "banner": "banner.jpg",
|
||||
myproduct_data = {
|
||||
"myproudct": {
|
||||
"banner": product_data.banner,
|
||||
"description": "Product Description - Commitment is something that comes from understanding that everything has its price and then having the willingness to pay that price. This is important because nobody wants to put significant effort into something, only to find out after the fact that the price was too high.The price is something not necessarily defined as financial. It could be time, effort, sacrifice, money or perhaps, something else.",
|
||||
"description": product_description,
|
||||
"internal_url": "",
|
||||
"price_text": "90 days free and 3.95/Month",
|
||||
"product_id": product_data.product_id,
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
from flask import session, jsonify
|
||||
|
||||
from app.api.routes.routes import myproduct_url
|
||||
from app.api.services import MyProductsService
|
||||
from app.models.loan import Loan
|
||||
from app.utils.logger import logger
|
||||
from app.api.services.base_service import BaseService
|
||||
@@ -128,6 +131,7 @@ class ProductsService(BaseService):
|
||||
product_data=[]
|
||||
logger.info(f"Product Data ****** *****: {products}")
|
||||
|
||||
|
||||
for t in products:
|
||||
product_data.append({
|
||||
'id': t.id,
|
||||
|
||||
Reference in New Issue
Block a user