From e2adfa38b402d380cb2771280f69d6265f67d2e3 Mon Sep 17 00:00:00 2001 From: Vansh Comar Date: Tue, 19 Oct 2021 00:28:51 +0530 Subject: [PATCH] Another PEP8 update --- app/routes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/routes.py b/app/routes.py index 2ad9284..8f289bc 100644 --- a/app/routes.py +++ b/app/routes.py @@ -291,8 +291,8 @@ def search(): # Finding the element before which the IP card would be placed f_link = html_soup.select_one(".BNeawe.vvjwJb.AP7Wnd") - ref_element = first_link.find_parent(class_="ZINbbc xpd O9g5cc" + - " uUPGi") + ref_element = f_link.find_parent(class_="ZINbbc xpd O9g5cc" + + " uUPGi") # Inserting the element ref_element.insert_before(ip_tag) @@ -324,7 +324,8 @@ def search(): query=urlparse.unquote(query), search_type=search_util.search_type, mobile=g.user_request.mobile) - if 'isch' not in search_util.search_type else '')), resp_code + if 'isch' not in + search_util.search_type else '')), resp_code @app.route('/config', methods=['GET', 'POST', 'PUT'])