diff --git a/app/routes.py b/app/routes.py index 955d785..9b91e08 100644 --- a/app/routes.py +++ b/app/routes.py @@ -253,7 +253,7 @@ def search(): # Feature to display IP address if search_util.check_kw_ip(): - html_soup = bsoup(response,"html.parser") + html_soup = bsoup(response, "html.parser") response = add_ip(html_soup, request.remote_addr) return render_template( diff --git a/app/static/css/dark-theme.css b/app/static/css/dark-theme.css index 980da0b..2d17c00 100644 --- a/app/static/css/dark-theme.css +++ b/app/static/css/dark-theme.css @@ -189,4 +189,4 @@ path { .ip-text-div{ color: var(--whoogle-dark-secondary-text) !important; -} \ No newline at end of file +} diff --git a/app/static/css/light-theme.css b/app/static/css/light-theme.css index e419621..fbe3ad6 100644 --- a/app/static/css/light-theme.css +++ b/app/static/css/light-theme.css @@ -177,4 +177,4 @@ path { .ip-text-div{ color: var(--whoogle-secondary-text) !important; -} \ No newline at end of file +} diff --git a/app/static/css/search.css b/app/static/css/search.css index d5207a0..adebbf1 100644 --- a/app/static/css/search.css +++ b/app/static/css/search.css @@ -38,4 +38,4 @@ details summary { .ip-text-div{ padding-top:0!important; -} \ No newline at end of file +} diff --git a/app/utils/results.py b/app/utils/results.py index 496c3e5..03ffadc 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -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: @@ -179,4 +179,4 @@ def add_ip(html_soup: BeautifulSoup, ip: str) -> BeautifulSoup: # Inserting the element ref_element.insert_before(ip_tag) - return html_soup \ No newline at end of file + return html_soup diff --git a/app/utils/search.py b/app/utils/search.py index 3edb471..2ffaf17 100644 --- a/app/utils/search.py +++ b/app/utils/search.py @@ -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