Esempio n. 1
0
def remove_from_watchlist():
    # Obtain the username of the currently logged in user.
    username = session['username']
    movie_id = request.args.get('movie')
    services.remove_from_watchlist(int(movie_id), username, repo.repo_instance)
    return redirect(url_for('movie_library_bp.watchlist'))
Esempio n. 2
0
def remove_from_watchlist():
    movieId = request.args.get('movie')
    userName = session['username']
    services.remove_from_watchlist(int(movieId), userName, repo.repo_instance)
    return redirect(url_for('movie_library_bp.watchlist'))
Esempio n. 3
0
def remove_from_watchlist():
    services.remove_from_watchlist(int(request.args.get('movie')),
                                   session['username'], repo.repo_instance)
    return redirect(url_for('movie_library_bp.watchlist'))