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')