Example #1
0
 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})
Example #2
0
 def get(self, request):
     proc = QueryProcessor("reverse blood flow", 'all')
     mes, results = proc.perform_search()
     return render(request, 'results.html', {"results": results})
Example #3
0
 def get(self, request):
     proc = QueryProcessor("psychological effects of isolation", 'all')
     mes, results = proc.perform_search()
     return render(request, 'results.html', {"results": results})
Example #4
0
 def get(self, request):
     proc = QueryProcessor("muscular dystrophy", 'all')
     mes, results = proc.perform_search()
     return render(request, 'results.html', {"results": results})
Example #5
0
 def get(self, request):
     proc = QueryProcessor("Vision Loss", 'all')
     mes, results = proc.perform_search()
     return render(request, 'results.html', {"results": results})