mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Lint
Remove spaces in empty lines
This commit is contained in:
parent
78c258afe7
commit
7572c61ac9
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ def post_search(_request, search):
|
|||
return True
|
||||
|
||||
query = search.search_query.query
|
||||
|
||||
|
||||
# in order to avoid DoS attacks with long expressions, ignore long expressions
|
||||
if len(query) > 100:
|
||||
return True
|
||||
|
@ -105,7 +105,7 @@ def post_search(_request, search):
|
|||
if not locale:
|
||||
# use some default local in case it is not configured
|
||||
locale = babel.Locale.parse("en-US", sep='-')
|
||||
|
||||
|
||||
# parse the number system in a localized way
|
||||
def _decimal(match: re.Match) -> str:
|
||||
val = match.string[match.start() : match.end()]
|
||||
|
|
Loading…
Add table
Reference in a new issue