Ejemplo n.º 1
0
def delete_client():
    client_id = request.form['client']
    client = Client.get(client_id)
    client.delete()
    return jsonify({'message': 'ok'})
Ejemplo n.º 2
0
def delete_client():
    client_id = request.form["client"]
    client = Client.get(client_id)
    client.delete()
    return {"message": "ok"}