def post(self, request): query = str(request.POST["query"]) source = str(request.POST['option']) proc = QueryProcessor(query, source) mes, results = proc.perform_search() if mes is not None: return render(request, 'results.html', {'results': [], 'mes': mes}) return render(request, 'results.html', {"results": results})
def get(self, request): proc = QueryProcessor("reverse blood flow", 'all') mes, results = proc.perform_search() return render(request, 'results.html', {"results": results})
def get(self, request): proc = QueryProcessor("psychological effects of isolation", 'all') mes, results = proc.perform_search() return render(request, 'results.html', {"results": results})
def get(self, request): proc = QueryProcessor("muscular dystrophy", 'all') mes, results = proc.perform_search() return render(request, 'results.html', {"results": results})
def get(self, request): proc = QueryProcessor("Vision Loss", 'all') mes, results = proc.perform_search() return render(request, 'results.html', {"results": results})