Skip to content

Commit 5910c3a

Browse files
Typo (#5750)
1 parent dc6e773 commit 5910c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: web_programming/search_books_by_isbn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_openlibrary_data(olid: str = "isbn/0140328726") -> dict:
2727
return requests.get(f"https://openlibrary.org/{new_olid}.json").json()
2828

2929

30-
def summerize_book(ol_book_data: dict) -> dict:
30+
def summarize_book(ol_book_data: dict) -> dict:
3131
"""
3232
Given Open Library book data, return a summary as a Python dict.
3333
@@ -70,7 +70,7 @@ def summerize_book(ol_book_data: dict) -> dict:
7070
print(f"\nSearching Open Library for ISBN: {isbn}...\n")
7171

7272
try:
73-
book_summary = summerize_book(get_openlibrary_data(f"isbn/{isbn}"))
73+
book_summary = summarize_book(get_openlibrary_data(f"isbn/{isbn}"))
7474
print("\n".join(f"{key}: {value}" for key, value in book_summary.items()))
7575
except JSONDecodeError: # Workaround for requests.exceptions.RequestException:
7676
print(f"Sorry, there are no results for ISBN: {isbn}.")

0 commit comments

Comments
 (0)