Exemplo n.º 1
0
Arquivo: views.py Projeto: bradens/uvc
def getKennellingAvailability2(request):
	day = datetime.strptime(request.GET.get('startDay'), "%Y-%m-%d").date()
	weekDelta = timedelta(weeks=1)
	startDate = day
	endDate = day+(weekDelta*11)
	ud = ""
	for d in daterange(startDate, endDate):
		if not ScheduleManager.canfit(d, None, "KENNELLING"):
			ud += d.strftime("%Y-%m-%d") + ","
	return HttpResponse(ud)
Exemplo n.º 2
0
Arquivo: views.py Projeto: bradens/uvc
def getGroomingAvailability(request):
	start = request.GET.get('startTime')
	end = request.GET.get('endTime')
	elementId = request.GET.get('elementId')
	result = ScheduleManager.canfit(start, end, "APPOINTMENT")
	return HttpResponse(str(elementId) + ":" + str(result))