Skip to content

Commit 8c38f50

Browse files
committed
rename title to query and bump version
1 parent 87202d3 commit 8c38f50

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGELOG.MD

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,9 @@ All notable changes to this project will be documented in this file.
6363
- `cached` option in latest circular
6464

6565
### Improved
66-
- `CircularChecker` class now returns a sorted dict of new circulars
66+
- `CircularChecker` class now returns a sorted dict of new circulars
67+
68+
# v1.3.1 - 23/6/2023
69+
70+
### Fixed
71+
- Changed the param name of /search to `query` from `title` to match API change

README.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ Contributions are welcome! Please feel free to open an issue or a pull request o
4848
## License
4949

5050
This project is licensed under the MIT License - see the [LICENSE](https://bpsapi.rajtech.me/r/python-package/blob/master/LICENSE) file for details
51+
52+
---
53+
54+
Currently maintained by [Raj Dave](https://github.com/RajDave69)

pybpsapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def search(self, query: str or int, amount: int = 1) -> dict or None:
7070
elif type(query) != str:
7171
raise ValueError("Invalid Query")
7272

73-
params = {'title': query, 'amount': amount}
73+
params = {'query': query, 'amount': amount}
7474

7575
request = requests.get(self.url + "search", params=params)
7676
json = request.json()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pybpsapi"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
description = "This package is a Python wrapper for the BPS API. It supports all the five endpoints of the API, and also contains a good circular-checking system."
55
author = "Raj Dave"
66
author-email = "rajdave8002@gmail.com"

0 commit comments

Comments
 (0)