From a01d50acbd6c4fee835df7ae42190142826b56eb Mon Sep 17 00:00:00 2001 From: Sungho Cho Date: Sun, 8 Dec 2019 17:28:12 -0500 Subject: [PATCH] Minor fix --- ihatemoney/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index a9780faa..7f34e56e 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -193,7 +193,7 @@ class BillForm(FlaskForm): bill.date = self.date.data bill.owers = [Person.query.get(ower, project) for ower in self.payed_for.data] bill.original_currency = self.original_currency.data - bill.original_amount = self.currency_helper.exchange_currency(bill.amount, bill.original_currency, project.default_currency) + bill.original_amount = self.currency_helper.exchange_currency(float(bill.amount), bill.original_currency, project.default_currency) return bill