from django.http import HttpResponse
from django.template import Context, loader
from django.shortcuts import render, redirect
from plumbing.models import *

# Create your views here.

def index(request):
	program_list = Program.objects.all()
	template = loader.get_template('plumbing/index.html')
	context = Context({
		'program_list': program_list,
	})
	return HttpResponse(template.render(context))

def execute(request, program_id):
	programs = Program.objects.filter(id=program_id)
	programs[0].execute()
	return redirect('/plumbing/status')

def status(request):
	programs = Program.objects.all()
	return render(request, 'plumbing/status.html', {'programs': programs})

c5d93c224cefa3103c501de4dbe44f02ab235f54
<mask token>


def execute(request, program_id):
    programs = Program.objects.filter(id=program_id)
    programs[0].execute()
    return redirect('/plumbing/status')


<mask token>

<mask token>


def execute(request, program_id):
    programs = Program.objects.filter(id=program_id)
    programs[0].execute()
    return redirect('/plumbing/status')


def status(request):
    programs = Program.objects.all()
    return render(request, 'plumbing/status.html', {'programs': programs})

<mask token>


def index(request):
    program_list = Program.objects.all()
    template = loader.get_template('plumbing/index.html')
    context = Context({'program_list': program_list})
    return HttpResponse(template.render(context))


def execute(request, program_id):
    programs = Program.objects.filter(id=program_id)
    programs[0].execute()
    return redirect('/plumbing/status')


def status(request):
    programs = Program.objects.all()
    return render(request, 'plumbing/status.html', {'programs': programs})

from django.http import HttpResponse
from django.template import Context, loader
from django.shortcuts import render, redirect
from plumbing.models import *


def index(request):
    program_list = Program.objects.all()
    template = loader.get_template('plumbing/index.html')
    context = Context({'program_list': program_list})
    return HttpResponse(template.render(context))


def execute(request, program_id):
    programs = Program.objects.filter(id=program_id)
    programs[0].execute()
    return redirect('/plumbing/status')


def status(request):
    programs = Program.objects.all()
    return render(request, 'plumbing/status.html', {'programs': programs})

from django.http import HttpResponse
from django.template import Context, loader
from django.shortcuts import render, redirect
from plumbing.models import *

# Create your views here.

def index(request):
	program_list = Program.objects.all()
	template = loader.get_template('plumbing/index.html')
	context = Context({
		'program_list': program_list,
	})
	return HttpResponse(template.render(context))

def execute(request, program_id):
	programs = Program.objects.filter(id=program_id)
	programs[0].execute()
	return redirect('/plumbing/status')

def status(request):
	programs = Program.objects.all()
	return render(request, 'plumbing/status.html', {'programs': programs})
