Exemplo n.º 1
0
def view_user_stories(request):
    if request.method == 'POST':
        try:
            data = json.loads(request.body)
            userUUID = data['uuid']
            listOfStories = pull_from_git('repos/' + userUUID,
                                          index_prefix='',
                                          es_host='http://localhost:9200')
            return HttpResponse(listOfStories)
        except:
            print 'nope'
    return HttpResponse('Never found user')
Exemplo n.º 2
0
def stories(request):
    listOfStories = pull_from_git('repos/test_content',
                                  index_prefix='',
                                  es_host='http://localhost:9200')
    return HttpResponse(listOfStories)