Add logging to convert task

This commit is contained in:
Lukáš Kucharczyk 2024-11-11 00:27:02 +01:00
parent 4db8d1a63b
commit 29b71a57cc
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 3 additions and 0 deletions

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