added template data
This commit is contained in:
@@ -41,7 +41,6 @@ class MembersProducts(db.Model):
|
||||
back_populates="members_products",
|
||||
)
|
||||
|
||||
|
||||
@classmethod
|
||||
def get_member_productlist_by_member_id(cls, member_id):
|
||||
member_products = cls.query.filter_by(member_id=str(member_id))
|
||||
@@ -73,13 +72,6 @@ class MembersProducts(db.Model):
|
||||
|
||||
@classmethod
|
||||
def create_subscription(cls, member_id ,product_id,status,internal_url):
|
||||
# Create the subscription
|
||||
'''
|
||||
merms_panel=# select * from members_products;
|
||||
id | uid | member_id | product_id | internal_url | external_url | dns_group | status | added | updated
|
||||
----+-----+-----------+------------+--------------+--------------+-----------+--------+-------+---------
|
||||
(0 rows)
|
||||
'''
|
||||
dns_group = "DNS_G01"
|
||||
logger.info(f" Data for Subscription Data {member_id} ,{product_id} ,{status}, {internal_url} ")
|
||||
subscription = cls(
|
||||
|
||||
@@ -26,6 +26,14 @@ class SubscriptionOptions(db.Model):
|
||||
return None
|
||||
return sub_options
|
||||
|
||||
@classmethod
|
||||
def get_subscription_options_by_option_name(cls, option_name):
|
||||
sub_options = cls.query.filter_by(option_name=option_name).all()
|
||||
if not sub_options:
|
||||
return None
|
||||
return sub_options
|
||||
|
||||
|
||||
@classmethod
|
||||
def set_stripe_product_id(cls,package_uid, stripe_product_id):
|
||||
# Retrieve
|
||||
|
||||
Reference in New Issue
Block a user