diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 5fe6b15..e028c1c 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -805,10 +805,18 @@ def myproduct(current_user): @token_required def myproduct_provision(current_user): product_id = request.args.get('product_id') - print(product_id) + product_uid = request.args.get('product_subscription_uid') + print(product_uid) + if not product_uid: + return { + "message": "Please provide product_subscription_uid ", + "data": None, + "error": "Bad request" + }, 400 + if not product_id: return { - "message": "Please provide product_id", + "message": "Please provide product_id ", "data": None, "error": "Bad request" }, 400 @@ -816,7 +824,7 @@ def myproduct_provision(current_user): print(product_id) member_id = current_user['user']['member_id'] myproduct_data = myproduct_detail(member_id , product_id) - product_uid = '06a8e774-c8f2-4d6f-993b-1b9ba0cf538e' + #product_uid = '06a8e774-c8f2-4d6f-993b-1b9ba0cf538e' SELECT_PROVISION_ACTIVITIES = f"SELECT id,action,added::text AS date from provision_actions WHERE product_uid='{product_uid}' ORDER BY id DESC LIMIT 10" print(SELECT_PROVISION_ACTIVITIES) with connection: @@ -898,6 +906,8 @@ def addProvisionAction(member_id,product_uid,action): @app.route("/panel/settings") def user_settings(): + + settings_data = { "external_links": [ {