Skip to content

Commit 6111e58

Browse files
committed
Fix readme and added docstring
1 parent aa84e1f commit 6111e58

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ Parameters:
122122
### motor_search(page, make, fuel, chassi, price, modelYear, milage, gearbox)
123123
To query listings related to a specific car, supply the following parameters:
124124

125-
Parameters:
126125
- `page` (`int`, required) - Results are split in pages, set page number here.
127126
- `make` (`List[MAKE_OPTIONS]`) - Filter a specific make, ex. `Audi`.
128127
- `fuel` (`Optional[List[FUEL_OPTIONS]]`) - Filter a specific fuel, ex. `Diesel`.
@@ -132,7 +131,6 @@ Parameters:
132131
- `milage` (`Optional[Tuple[int, int]]`) - Set milage range, ex. `(1000, 2000)`.
133132
- `gearbox` (`Optional[GEARBOX_OPTIONS]`) - Filter a specific gearbox, ex. `Automat`.
134133
```py
135-
>>> from blocket_api import Region
136134
>>> api.motor_search(
137135
make=["Audi", "Ford"],
138136
fuel=["Diesel"],

blocket_api/blocket.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ def motor_search(
171171
milage: Optional[Tuple[int, int]] = None,
172172
gearbox: Optional[GEARBOX_OPTIONS] = None,
173173
):
174+
"""
175+
Search specifically in the car section of Blocket
176+
with set optional parameters for filtering.
177+
"""
174178
range_params = ["price", "modelYear", "milage"]
175179
set_params = {
176180
key: value

0 commit comments

Comments
 (0)