Skip to content

Commit

Permalink
🐛 Fix typo in main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benjhar committed Feb 20, 2022
1 parent 43e2851 commit b956f94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "jokeapi"
version = "1.0.2"
version = "1.0.3"
description = "Python API Wrapper for Sv443's JokeAPI (https://v2.jokeapi.dev)"
readme = "README.md"
homepage = "https://pypi.org/project/jokeapi"
Expand Down
2 changes: 1 addition & 1 deletion src/jokeapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def build_request(
if search_string:
r += f"&contains={search_string}"
if id_range:
r += f"i&dRange={id_range[0]}-{id_range[1]}"
r += f"&idRange={id_range[0]}-{id_range[1]}"
if amount > 10:
raise ValueError(
f"amount parameter must be no greater than 10. you passed {amount}."
Expand Down

0 comments on commit b956f94

Please sign in to comment.