Exemplo n.º 1
0
def show_JSON_submit():
    input_title = request.values.get('sterm')
    input_title = word_encoder(input_title)
    input_author = request.values.get('author')
    input_author = word_encoder(input_author)
    input_genre = request.values.get('genre')
    input_genre = word_encoder(input_genre)
    submit_text = {'title': input_title, 'author':input_author, 'genre': input_genre}
    return main_query_handler(submit_text,"submit")
Exemplo n.º 2
0
def show_JSON_sTag():
    bookid = request.values.get('bookid')
    bookid = word_encoder(bookid)
    bookstatus = request.values.get('status')
    bookstatus = word_encoder(bookstatus)
    return main_query_handler(bookid,bookstatus)
Exemplo n.º 3
0
def show_JSON():
    search_word = request.values.get('sterm')
    search_word = word_encoder(search_word)
    query_term = request.values.get('query_term')
    query_term = word_encoder(query_term)
    return main_query_handler(search_word, query_term)