mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
clearer comment
This commit is contained in:
parent
2f978612c7
commit
63bb7705d0
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ class Project(db.Model):
|
||||||
bill.converted_amount = CurrencyConverter().exchange_currency(
|
bill.converted_amount = CurrencyConverter().exchange_currency(
|
||||||
bill.amount, bill.original_currency, new_currency
|
bill.amount, bill.original_currency, new_currency
|
||||||
)
|
)
|
||||||
# Add the currency for previously un-currency-ied
|
# Add the currency for bills that were created without currency
|
||||||
if bill.original_currency == CurrencyConverter.no_currency:
|
if bill.original_currency == CurrencyConverter.no_currency:
|
||||||
bill.original_currency = new_currency
|
bill.original_currency = new_currency
|
||||||
db.session.add(bill)
|
db.session.add(bill)
|
||||||
|
|
Loading…
Reference in a new issue