From b9d20f091a354a802f5816ea6eb8821807f5e6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E7=BE=85=E7=8B=BC?= Date: Thu, 14 Mar 2024 22:17:07 +0800 Subject: [PATCH] cleanup --- modules/wolframalpha/check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wolframalpha/check.py b/modules/wolframalpha/check.py index 0853e68346..b1cd7b6c05 100644 --- a/modules/wolframalpha/check.py +++ b/modules/wolframalpha/check.py @@ -1,7 +1,7 @@ unsafe_word_list = [ "ip", "geoip", - "location" + "location", ] unsafe_prompt_list = [ @@ -15,7 +15,7 @@ async def secret_check(query): query = query.lower() for prompt in unsafe_prompt_list: - if prompt in query.lower(): + if prompt in query: return True for word in unsafe_word_list: