Files
timetracker/games
lukas 1fcef255a6
Django CI/CD / test (push) Successful in 4m4s
Staging deployment / deploy (push) Failing after 31s
Staging deployment / comment (push) Has been skipped
Staging deployment / teardown (push) Has been skipped
Django CI/CD / build-and-push (push) Has been skipped
Fix convert_prices storing exchange rate as string
floatformat() returns a str; saving that to ExchangeRate.rate (FloatField)
via create() leaves the Python instance attribute as a str. Reading it back
on the same instance (rate = exchange_rate.rate) then caused
`purchase.price * rate` to fail with "can't multiply sequence by non-int
of type 'float'".

Fix: pass the raw float from the API directly to ExchangeRate.objects.create.
Also replace floatformat(..., 0) on the converted price with round(..., 2)
to keep a numeric type throughout.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 12:43:46 +02:00
..
2026-06-06 13:14:55 +02:00
2023-01-20 13:37:46 +00:00
2025-01-29 22:05:06 +01:00
2026-06-12 22:45:25 +02:00
2025-03-22 20:59:23 +01:00
2026-06-06 13:14:55 +02:00