Skip to content

Commit ac8f853

Browse files
committed
clean up
1 parent b3692fe commit ac8f853

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

jigsawstack/search.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,13 @@ def __init__(
117117
)
118118

119119
async def search(self, params: SearchParams) -> SearchResponse:
120-
query = params["query"]
121-
ai_overview = params.get("ai_overview", "True")
122-
safe_search = params.get("safe_search", "moderate")
123-
spell_check = params.get("spell_check", "True")
124-
path = f"/web/search?query={query}&ai_overview={ai_overview}&safe_search={safe_search}&spell_check={spell_check}"
120+
path = f"/web/search"
125121
resp = await AsyncRequest(
126122
config=self.config,
127123
path=path,
128124
params=cast(Dict[Any, Any], params),
129-
verb="GET",
125+
verb="POST",
130126
).perform_with_content()
131-
132127
return resp
133128

134129
async def suggestion(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="jigsawstack",
9-
version="0.1.22",
9+
version="0.1.23",
1010
description="JigsawStack Python SDK",
1111
long_description=open("README.md", encoding="utf8").read(),
1212
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)