Ejemplo n.º 1
0
def prompt_read_book():
    """
    Ask for book name and change it to 'Read' in our list
    :return:
    """
    name = input('Enter the name of the book you just finished reading: ')
    database.mark_book_as_read(name)
Ejemplo n.º 2
0
def prompt_read_book():
    """
        Get from an input the name of the book you would like to set as read and
        modify the database.    
    """
    name = input('Enter the name of the book you finished reading: ')

    database.mark_book_as_read(name)
Ejemplo n.º 3
0
def prompt_read_book():
    book_id = int(input("Book ID:").strip())
    book = database.mark_book_as_read(book_id)
    if book['read']:
        print("Book marked as read")
    else:
        print("Book marked as unread")

    print_book(book_id, book)
Ejemplo n.º 4
0
def menu():
	user_input = input(USER_CHOICE).strip().lower()
	while user_input != "q":
		if user_input == "a":
			database.add_books()
		elif user_input == "l":
			reading_list = database.list_all_books()
			if reading_list:
				database.list_books(reading_list)
			else:
				print("List is empty")
		elif user_input == "r":
			database.mark_book_as_read()
		elif user_input == "d":
			database.delete_books()
		else:
			print("Input is not valid, please enter again")

		user_input = input(USER_CHOICE).strip().lower()
Ejemplo n.º 5
0
def prompt_read_book():
    name = input('Enter the name of the book you just have read: ')

    database.mark_book_as_read(name)
Ejemplo n.º 6
0
def promp_read_book():  # ask for book name and chage it to "read" in our list
    name = input('Enter the name of the book you just finished reading: ')

    database.mark_book_as_read(name)
Ejemplo n.º 7
0
def prompt_mark_book_as_read():
    book_name = input("Please type the name of the book you have read: ")
    database.mark_book_as_read(book_name)
Ejemplo n.º 8
0
def prompt_read_book():
    name = input("Enter the name of book you want to read: ")
    database.mark_book_as_read(name)
Ejemplo n.º 9
0
def prompt_read_book():
    read_input = input(
        'What is the name of the book you would like to mark as read')

    database.mark_book_as_read(read_input)
Ejemplo n.º 10
0
def prompt_read_book():
    name = input("Enter the name of the book you've read.")

    database.mark_book_as_read(name)
Ejemplo n.º 11
0
def prompt_read_books():  # function to return Yes for read books else No
    name = input("enter name of the book read:")

    database.mark_book_as_read(name)
Ejemplo n.º 12
0
def prompt_read_book():
    name = input('Please enter name of book you just finished reading: ')

    database.mark_book_as_read(name,)
Ejemplo n.º 13
0
def prompt_read_book():
    name = input('Enter the Name of the Book, you\'ve just finish Reading :  ')
    database.mark_book_as_read(name)
Ejemplo n.º 14
0
def prompt_read_book():
    title = input('Enter the title of the book you just finished: ')

    database.mark_book_as_read(title)
Ejemplo n.º 15
0
def prompt_read_book():
    name = input('\nFinished reading a book? Enter its name: ')

    database.mark_book_as_read(name)
Ejemplo n.º 16
0
def prompt_read_book():
    book_name = input('Enter the book name you just finished reading: ')
    database.mark_book_as_read(book_name)
Ejemplo n.º 17
0
def prompt_read_book():
    book_name = input('Enter a name of a the book: ')
    db.mark_book_as_read(book_name)
Ejemplo n.º 18
0
def prompt_read_book():
    name= input('Enter the name of the book you read: ')
    database.mark_book_as_read(name)
    print(f"The book, {name} has been updated to status: READ")
Ejemplo n.º 19
0
def prompt_read_book():
    name = input("What is the name of the book that you've finished: ")

    database.mark_book_as_read(name)
Ejemplo n.º 20
0
def prompt_read_book():
    name = input("Enter the book name you just finished reading")
    database.mark_book_as_read(name)
Ejemplo n.º 21
0
def prompt_read_book():
    name = input('Enter name of book you just finished reading: ')
    db.mark_book_as_read(name)
Ejemplo n.º 22
0
def prompt_read_book():
    name = input('Book name: ')
    database.mark_book_as_read(name)
Ejemplo n.º 23
0
def prompt_mark_book_as_read():
    mark_book_as_read(
        input('Enter the book from the list which you have already read'))
Ejemplo n.º 24
0
def prompt_read_book():
    """[save the name of the book the user finished reading.]
    """
    name = input('Enter the name of the book you just finished reading: \n')
    database.mark_book_as_read(name)
Ejemplo n.º 25
0
def prompt_read_book():
    name = input('Enter the name of the book you just finished reading: ')

    database.mark_book_as_read(name)
Ejemplo n.º 26
0
def prompt_read_book():  # Ask for name and change the read boolean
    title = input('Enter the title: ').title()
    database.mark_book_as_read(title)