added template data

This commit is contained in:
CHIEFSOFT\ameye
2025-08-25 11:56:45 -04:00
parent d6c657e7b2
commit 6625b9edc9
6 changed files with 123 additions and 12 deletions
-8
View File
@@ -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(
+8
View File
@@ -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