def searchGithubQuery(request): query = request.POST.get('query') output = base.getAPIOutput(query, "Github") speak.say(output) return render(request, 'Github/githubNew.html', { 'query': query, 'output': output })
def searchJiraQuery(request): query = request.POST.get('query') # params = request.POST.get('params') # query = params['query'] output = base.getAPIOutput(query, "Jira") speak.say(output) return render(request, 'Jira/jiraNew.html', { 'query': query, 'output': output })
def listenSearchQuery(request): speak.say("Speak your query") query = listen.listenInput() output = base.getAPIOutput(query, "Search") speak.say(output) if output == "Project doesnt exist": to_do = 0 in_progress = 0 done = 0 else: to_do = base.getToDoIssueNum() in_progress = base.getInProgressIssueNum() done = base.getDoneIssueNum() return render( request, 'search/search.html', { 'query': query, 'output': output, 'to_do': to_do, 'in_progress': in_progress, 'done': done })
def searchJiraQuery(request): query = request.POST.get('query') output = base.getAPIOutput(query, "Jira") speak.say(output) return render(request, 'Jira/Jira.html', {'query':query, 'output':output})