Ejemplo n.º 1
0
def remove_status_code_d():
    status_code = int(request.json["status_code"])
    result, info = control.delete_api_status(current_user.user_name, current_user.role, status_code)
    if result is False:
        return info
    return jsonify({"status": True, "data": request.json["status_code"]})
Ejemplo n.º 2
0
def remove_status_code():
    status_code = int(request.args["status_code"])
    result, info = control.delete_api_status(current_user.user_name, current_user.role, status_code)
    if result is False:
        return info
    return redirect("%s/?status=%s" % (url_prefix, status_code))