Spaces:
Sleeping
Sleeping
bug fix for book search tool
Browse files- tools/book_search.py +17 -17
tools/book_search.py
CHANGED
|
@@ -42,23 +42,23 @@ class NYTBestSellerTool(Tool):
|
|
| 42 |
self.api_prefix = "https://api.nytimes.com/svc/books/v3/lists/current"
|
| 43 |
self.api_key = os.getenv("NYT_API_KEY")
|
| 44 |
self.possible_genres = [
|
| 45 |
-
"combined-print-and-e-book-fiction"
|
| 46 |
-
"combined-print-and-e-book-nonfiction"
|
| 47 |
-
"hardcover-fiction"
|
| 48 |
-
"hardcover-nonfiction"
|
| 49 |
-
"trade-fiction-paperback"
|
| 50 |
-
"paperback-nonfiction"
|
| 51 |
-
"advice-how-to-and-miscellaneous"
|
| 52 |
-
"childrens-middle-grade-hardcover"
|
| 53 |
-
"picture-books"
|
| 54 |
-
"series-books"
|
| 55 |
-
"young-adult-hardcover"
|
| 56 |
-
"audio-fiction"
|
| 57 |
-
"audio-nonfiction"
|
| 58 |
-
"business-books"
|
| 59 |
-
"graphic-books-and-manga"
|
| 60 |
-
"mass-market-monthly"
|
| 61 |
-
"middle-grade-paperback-monthly"
|
| 62 |
"young-adult-paperback-monthly"
|
| 63 |
]
|
| 64 |
|
|
|
|
| 42 |
self.api_prefix = "https://api.nytimes.com/svc/books/v3/lists/current"
|
| 43 |
self.api_key = os.getenv("NYT_API_KEY")
|
| 44 |
self.possible_genres = [
|
| 45 |
+
"combined-print-and-e-book-fiction",
|
| 46 |
+
"combined-print-and-e-book-nonfiction",
|
| 47 |
+
"hardcover-fiction",
|
| 48 |
+
"hardcover-nonfiction",
|
| 49 |
+
"trade-fiction-paperback",
|
| 50 |
+
"paperback-nonfiction",
|
| 51 |
+
"advice-how-to-and-miscellaneous",
|
| 52 |
+
"childrens-middle-grade-hardcover",
|
| 53 |
+
"picture-books",
|
| 54 |
+
"series-books",
|
| 55 |
+
"young-adult-hardcover",
|
| 56 |
+
"audio-fiction",
|
| 57 |
+
"audio-nonfiction",
|
| 58 |
+
"business-books",
|
| 59 |
+
"graphic-books-and-manga",
|
| 60 |
+
"mass-market-monthly",
|
| 61 |
+
"middle-grade-paperback-monthly",
|
| 62 |
"young-adult-paperback-monthly"
|
| 63 |
]
|
| 64 |
|