From 3d1cb3d3e078d16d976495c09a737de6ea8495c9 Mon Sep 17 00:00:00 2001 From: Vansh Comar Date: Thu, 18 Nov 2021 13:01:11 +0530 Subject: [PATCH] Pep8 update --- app/utils/results.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/utils/results.py b/app/utils/results.py index 3457558..c527440 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -252,19 +252,17 @@ def check_currency(response: str): def add_currency_b(soup: BeautifulSoup, conversion_details: list) -> BeautifulSoup: - """Adds the conversion input boxes to the search result - + """Adds the currency conversion boxes + to response of the search query + Args: - soup: The parsed search result - containing currency conversion - conversion_details: Floating point number - to be used for conversion + soup: Parsed search result + conversion_details: list of currency + related information Returns: BeautifulSoup - """ - # Element before which the code will be changed # (This is the 'disclaimer' link) element1 = soup.select_one('[class="nXE3Ob"]')