File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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"\n Searching 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 } ." )
You can’t perform that action at this time.
0 commit comments