diff --git a/app/api/services/myproduct.py b/app/api/services/myproduct.py index 6c25f06..66088f1 100644 --- a/app/api/services/myproduct.py +++ b/app/api/services/myproduct.py @@ -150,7 +150,6 @@ class MyProductsService(BaseService): - @staticmethod def process_settings(data): try: @@ -224,34 +223,6 @@ class MyProductsService(BaseService): member_data = Members.get_member_by_uid(uid) member_id = member_data.id product_id = validated_data.get('product_id') - - ''' - Table "public.products" - Column | Type | Collation | Nullable | Default - -------------+-----------------------------+-----------+----------+-------------------------------------- - id | integer | | not null | nextval('products_id_seq'::regclass) - uid | uuid | | | uuid_generate_v4() - product_id | character varying(25) | | not null | - name | character varying(100) | | not null | - description | character varying(250) | | not null | - status | integer | | | 0 - added | timestamp without time zone | | | now() - updated | timestamp without time zone | | | now() - banner | character varying(100) | | | - Indexes: - "products_id_key" UNIQUE CONSTRAINT, btree (id) - "products_name_key" UNIQUE CONSTRAINT, btree (name) - "products_product_id_key" UNIQUE CONSTRAINT, btree (product_id) - Referenced by: - TABLE "members_products" CONSTRAINT "members_products_product_id_fkey" FOREIGN KEY (product_id) REFERENCES products(product_id) - - - 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.", - 'internal_url': self.internal_url, - 'external_url': self.external_url, - - ''' product_subscription_uid='' product_subscription_external_url = '' product_subscription_internal_url = '' diff --git a/app/models/members_products_settings.py b/app/models/members_products_settings.py index 5d95ad4..79e41dd 100644 --- a/app/models/members_products_settings.py +++ b/app/models/members_products_settings.py @@ -95,8 +95,8 @@ class MembersProductsSettings(db.Model): if not update_p: raise ValueError(f"Reset with ID {members_products_settings_id} does not exist.") - if update_p.setting_value == setting_value: - return + update_p.setting_value = setting_value + return @classmethod