There was an error while loading. Please reload this page.
1 parent 1880192 commit aedb1d7Copy full SHA for aedb1d7
endpoints/books.py
@@ -12,5 +12,12 @@ def getting_single_book(self, bookId) -> str:
12
self._endpoint_url += bookId
13
return self._send_get_requests()
14
15
- def getting_multiple_books(self):
+ def getting_multiple_books(self, type="", limit=""):
16
+ if (type != "") and (limit == ""):
17
+ self._endpoint_url += f"?type={type}"
18
+ elif (type == "") and (limit != ""):
19
+ self._endpoint_url += f"?limit={limit}"
20
+ elif (type != "") and (type != ""):
21
+ self._endpoint_url += f"?type={type}&limit={limit}"
22
+
23
0 commit comments