Ejemplo n.º 1
0
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
    })
Ejemplo n.º 2
0
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
    })
Ejemplo n.º 3
0
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
        })
Ejemplo n.º 4
0
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})