def machine_delete(): machines = models.get_machine_by_id(request.args.get('id',0)) id=machines.get('id','') models.machine_delete(id) return redirect('/machine/')
def machine_delete(): uid = request.args.get('id', '') models.machine_delete(uid) return redirect(url_for('machine'))