Fix nsfw searching, first work on tests
This commit is contained in:
parent
1a123bc25d
commit
dfc0953708
|
@ -48,7 +48,7 @@ class Search(commands.Cog, name="Basic"):
|
|||
safesearch: str
|
||||
|
||||
# NSFW Filtering
|
||||
if nono_re.match(query):
|
||||
if nono_re.match(query) and not is_nsfw:
|
||||
raise SearchExceptions.SafesearchFail('Query had NSFW.')
|
||||
|
||||
base = "https://api.qwant.com/api"
|
||||
|
|
|
@ -8,6 +8,7 @@ chardet==3.0.4
|
|||
dblpy==0.3.4
|
||||
discord==1.0.1
|
||||
git+https://github.com/Rapptz/discord-ext-menus@master
|
||||
git+https://github.com/CraftSpider/dpytest@master
|
||||
discord.py==1.3.3
|
||||
entrypoints==0.3
|
||||
flake8==3.7.9
|
||||
|
|
Loading…
Reference in New Issue