Another PEP8 update

This commit is contained in:
Vansh Comar 2021-10-19 00:28:51 +05:30
parent 638db1e608
commit e2adfa38b4

View File

@ -291,8 +291,8 @@ def search():
# Finding the element before which the IP card would be placed # Finding the element before which the IP card would be placed
f_link = html_soup.select_one(".BNeawe.vvjwJb.AP7Wnd") f_link = html_soup.select_one(".BNeawe.vvjwJb.AP7Wnd")
ref_element = first_link.find_parent(class_="ZINbbc xpd O9g5cc" + ref_element = f_link.find_parent(class_="ZINbbc xpd O9g5cc" +
" uUPGi") " uUPGi")
# Inserting the element # Inserting the element
ref_element.insert_before(ip_tag) ref_element.insert_before(ip_tag)
@ -324,7 +324,8 @@ def search():
query=urlparse.unquote(query), query=urlparse.unquote(query),
search_type=search_util.search_type, search_type=search_util.search_type,
mobile=g.user_request.mobile) 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']) @app.route('/config', methods=['GET', 'POST', 'PUT'])