Fix a bug in convert_prices

Prevents actually finding any new prices
This commit is contained in:
Lukáš Kucharczyk 2025-03-22 13:45:44 +01:00
parent e0dfc0fc3e
commit 1a8338c0f8
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg

View File

@ -22,7 +22,7 @@ def save_converted_info(purchase, converted_price, converted_currency):
def convert_prices():
purchases = Purchase.objects.filter(
converted_price__isnull=True, converted_currency__isnull=True
converted_price__isnull=True, converted_currency=""
)
for purchase in purchases: