Beispiel #1
0
def post():
    if request.method == 'POST':
        mov = request.form['movie']
        year = request.form['year']
    if year == "":
        return info.searchByTitle(mov)
    else:
        info.titleAndYear(mov,int(year))
Beispiel #2
0
def hiren():
    if request.method == 'POST':
        title = request.form['movie']
        year = request.form['year']
    if year == '':
       nisha = info.searchByTitle(title)
       return jsonify(nisha)
    else:
        nisha = info.titleAndYear(title,year)
        return jsonify(nisha)