Skip to content

Commit

Permalink
+ [ 3 files changed ] - Fix google search's safe search
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 28, 2021
1 parent 02ac577 commit c5b678a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.0.4

- [**Fixed**] Fix google search's safe search not working

# 3.0.3

- [**Fixed**] Fixed more issue with Google search throwing error when there's unsupported "special" results
Expand Down
2 changes: 1 addition & 1 deletion core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ziBot(commands.Bot):

# --- NOTE: Information about the bot
author = "ZiRO2264#4572"
version = "`3.0.3` - `overhaul`"
version = "`3.0.4` - `overhaul`"
links = {
"Documentation (Coming Soon\u2122)": "https://z3r0.readthedocs.io",
"Source Code": "https://github.com/ZiRO-Bot/ziBot",
Expand Down
2 changes: 1 addition & 1 deletion exts/api/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async def search(

async with self.session.get( # type: ignore
self._fmt.format(
query=query, safe=safeSearch, num=numberOfResult, hl=languageCode
query=query, safe=safe, num=numberOfResult, hl=languageCode
),
headers={
"User-Agent": (
Expand Down

0 comments on commit c5b678a

Please sign in to comment.