This commit is contained in:
2024-10-12 03:55:00 +03:00
parent 7512b3347e
commit 4d7e5ded4d
2 changed files with 26 additions and 0 deletions

View File

@@ -221,3 +221,16 @@ def update_assembly_state():
except Exception as e:
print('Error while updating')
return jsonify(ok=False)
@assembly_blueprint.get('/needCrpt')
def need_crpt():
order_product_id = request.args.get('orderProductId')
return sipro.api.orders.need_crpt(order_product_id)
@assembly_blueprint.post('/attachCrpt')
def attach_crpt():
order_product_id = request.json.get('orderProductId')
crpt = request.json.get('crpt')
return sipro.api.orders.attach_crpt(order_product_id, crpt)