PEP8 fixes
This commit is contained in:
parent
96a0862f1e
commit
68abd54571
|
@ -141,11 +141,11 @@ def append_nojs(result: BeautifulSoup) -> None:
|
|||
|
||||
|
||||
def add_ip(html_soup: BeautifulSoup, ip: str) -> BeautifulSoup:
|
||||
"""Adds the client's IP address to the search results if query contains keywords
|
||||
"""Adds the client's IP address to the search results
|
||||
if query contains keywords
|
||||
|
||||
Args:
|
||||
query: Query of the client
|
||||
response: The search result containing the keywords
|
||||
html_soup: The parsed search result containing the keywords
|
||||
ip: ip address of the client
|
||||
|
||||
Returns:
|
||||
|
|
|
@ -166,9 +166,6 @@ class Search:
|
|||
def check_kw_ip(self) -> bool:
|
||||
"""Checks for keywords related to 'my ip' in the query
|
||||
|
||||
Args:
|
||||
query: Query of the client
|
||||
|
||||
Returns:
|
||||
bool
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user