def promt_show_whatched_movies(): username = input("Insert user name: ") movies = database.get_watched_movies(username) if movies: print_movie_list("Watched: ", movies) else: print("User haven't watched any movie yet!")
def prompt_show_watched_movies(): username = input("Username: "******"Watched", movies) else: print("That user hasn't watched any movies yet.")
def prompt_show_watched_movies(): username = input('Username: '******'Watched: ', movies) else: print('That user has no watched movies.')
def prompt_show_watched_movies(): username = input('Username: '******'Watched ({username})', movies) else: print('That user has watched no movies yet!')
def prompt_show_watched_movies(): username = input("Username: "******"Watched", movies) else: print("This user has watched no movies yet!")
def prompt_show_watched_movies(): username = input('Username: ') movies = database.get_watched_movies(username) if movies: print_movie_list(f"{username} watched , {movies}") else: print("That user has wathed no movies yet!")
def prompt_show_watched_movies(): username = input("Введи имя: ") movies = database.get_watched_movies(username) if movies: print_movie_list(f"{username}", movies) else: print("Список пуст!")
def prompt_show_watched_movies(): username = input("Username: "******"{username}'s watched", movies) else: print(f"{username} has watched no movies")
def prompt_show_watched_movies(): username = input("Username: "******"That user has watched no movies of this list yet.")
def prompt_show_watched_movies(): username = input("Username: "******"Watched", movies) else: print("That user has not been awsome enough to watch a movie yet!!")
def prompt_view_watched_movies(): username = input("Username: "******"{username} watched movies: ", movies) else: print("You haven't watched any movie yet.")
def prompt_show_watched_movies(): username = input("Username: "******"Watched", movies) else: print(f"{username} has no watched movies.")
def prompt_print_watched_movies(): username = input("Username: "******"{username}'s watched", watched_movies) else: print("User has not watched any movies yet.") print('\n')
def prompt_show_watched_movies(): """ Shows watched by user movies. :return: """ username = input("Username: ") print(database.get_movies(username)) movies = database.get_watched_movies(username) if movies: print_movie_list('Watched:', movies) else: print('The user has watched no movies yet.')
def prompt_watched_movies(): username = input('Enter username: '******'This user has not seen any movies yet!')
def prompt_watched_movies(): watcher_name = input('Enter your username: '******'\n{watcher_name}\'s Watched Movie List ===\n') watched_movies = get_watched_movies(watcher_name) if watched_movies: for title, release_date in watched_movies: print( f'Title: {title} \nRelease date: {convert_timestamp(release_date)}' ) else: print(f'{watcher_name} has not watched any movie yet...') print('======\n')
def prompt_get_watched_movies(): username = input("Username: ") return database.get_watched_movies(username)
movie_date = datetime.datetime.fromtimestamp(movie[1]) human_date = movie_date.strftime("%b %d %Y") print(f"{movie[0]} (on {human_date})") print("---- \n") def prompt_watch_movie(): movie_title = input("Enter movie title you've watched: ") database.watch_movie(movie_title) print(welcome) database.create_tables() while (user_input := input(menu)) != "6": if user_input == "1": prompt_add_movie() elif user_input == "2": movies = database.get_movies(True) print_movie_list("Upcoming", movies) elif user_input == "3": movies = database.get_movies() print_movie_list("All", movies) elif user_input == "4": prompt_watch_movie() elif user_input == "5": movies = database.get_watched_movies() print_movie_list("Watched", movies) else: print("Invalid input, please try again!")
def prompt_watch_movie(): username = input("Username: "******"Watched", movies)
def prompt_watch_movie(): username = input("Enter username: "******"Enter movie title you have watched: ") database.watch_movie(username, movie_title) def print_watched_movie_list(username, movies): print(f"{username}'s Watched Movies") for movie in movies: print(f"{movie[1]}") while (user_input := input(menu)) != "6": if user_input == "1": prompt_add_movie() elif user_input == "2": movies = database.get_movies(True) print_movie_list("Upcoming", movies) elif user_input == "3": movies = database.get_movies() print_movie_list("All", movies) elif user_input == "4": prompt_watch_movie() elif user_input == "5": username = input("Enter username: "******"Invalid input, please try again")
print("Found no movies for the search") while (user_input := input(menu)) != "8": if user_input == "1": prompt_add_movie() elif user_input == "2": movies = database.get_movies(True) # True is for upcoming movies print_movie_list("upcoming movies", movies) elif user_input == "3": movies = database.get_movies() # True is for upcoming movies print_movie_list("all movies", movies) elif user_input == "4": prompt_watch_movie() elif user_input == "5": username = input("Username: "******"watched", movies) else: print("No movies to display") elif user_input == "6": prompt_add_user() elif user_input == "7": prompt_search_movies() else: print("Invalid input, please try again!")