product_subscription_uid
This commit is contained in:
@@ -805,10 +805,18 @@ def myproduct(current_user):
|
|||||||
@token_required
|
@token_required
|
||||||
def myproduct_provision(current_user):
|
def myproduct_provision(current_user):
|
||||||
product_id = request.args.get('product_id')
|
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:
|
if not product_id:
|
||||||
return {
|
return {
|
||||||
"message": "Please provide product_id",
|
"message": "Please provide product_id ",
|
||||||
"data": None,
|
"data": None,
|
||||||
"error": "Bad request"
|
"error": "Bad request"
|
||||||
}, 400
|
}, 400
|
||||||
@@ -816,7 +824,7 @@ def myproduct_provision(current_user):
|
|||||||
print(product_id)
|
print(product_id)
|
||||||
member_id = current_user['user']['member_id']
|
member_id = current_user['user']['member_id']
|
||||||
myproduct_data = myproduct_detail(member_id , product_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"
|
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)
|
print(SELECT_PROVISION_ACTIVITIES)
|
||||||
with connection:
|
with connection:
|
||||||
@@ -898,6 +906,8 @@ def addProvisionAction(member_id,product_uid,action):
|
|||||||
@app.route("/panel/settings")
|
@app.route("/panel/settings")
|
||||||
def user_settings():
|
def user_settings():
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
settings_data = {
|
settings_data = {
|
||||||
"external_links": [
|
"external_links": [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user