def machine_view(): machines = models.get_machine_by_id(request.args.get('id', 0)) return render_template('machine_view.html', id=machines.get('id', ''), name=machines.get('name', ''), addr=machines.get('addr', ''), ip_ranges=machines.get('ip_ranges', ''))
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/')