Formatting Update

This commit is contained in:
Vansh Comar 2021-11-26 19:48:25 +05:30
parent c3a327b608
commit 458ff472e1
2 changed files with 3 additions and 3 deletions

View File

@ -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));
}
}

View File

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