From 458ff472e17299a9e240229a4822ef047d4209d9 Mon Sep 17 00:00:00 2001 From: Vansh Comar Date: Fri, 26 Nov 2021 19:48:25 +0530 Subject: [PATCH] Formatting Update --- app/static/js/currency.js | 2 +- app/utils/results.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/js/currency.js b/app/static/js/currency.js index c9bbb54..b669596 100644 --- a/app/static/js/currency.js +++ b/app/static/js/currency.js @@ -6,4 +6,4 @@ const convert = (n1, n2, conversionFactor) => { let inputBox = document.getElementById(id1).value; // updating the other input box after conversion document.getElementById(id2).value = ((inputBox * conversionFactor).toFixed(2)); -} \ No newline at end of file +} diff --git a/app/utils/results.py b/app/utils/results.py index dccb205..43bc926 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -278,8 +278,8 @@ def add_currency_card(soup: BeautifulSoup, element1 = element1.parent # Creating the conversion factor - conversion_factor = conversion_details['currencyValue1'] / \ - conversion_details['currencyValue2'] + conversion_factor = (conversion_details['currencyValue1'] / + conversion_details['currencyValue2']) # Creating a new div for the input boxes conversion_box = soup.new_tag('div')