Implement converting prices #79

Merged
lukas merged 22 commits from converted_prices into main 2024-11-11 16:36:58 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 29b71a57cc - Show all commits

View File

@ -8,6 +8,9 @@ currency_to = currency_to.lower()
def save_converted_info(purchase, converted_price, converted_currency):
print(
f"Changing converted price of {purchase} to {converted_price} {converted_currency} "
)
purchase.converted_price = converted_price
purchase.converted_currency = converted_currency
purchase.save()