We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e8c3fc commit 9dfd33cCopy full SHA for 9dfd33c
1 file changed
pybpsapi.py
@@ -7,6 +7,7 @@ class API:
7
8
def __init__(self, url="https://bpsapi.rajtech.me/"):
9
self.url = url
10
+ self.list = self.list_
11
12
json = requests.get(self.url + "categories").json()
13
if json['http_status'] == 200:
@@ -38,7 +39,7 @@ def latest(self, category: str or int) -> dict | None:
38
39
return json['data']
40
41
# /list endpoint
- def list(self, category: str or int, amount: int = -1) -> list | None:
42
+ def list_(self, category: str or int, amount: int = -1) -> list | None:
43
"""The `/list` endpoint returns a list of circulars from a particular category"""
44
if type(category) == int:
45
category = int(category)
0 commit comments