1
0

Prices must be on one line
Some checks failed
Python Ruff Code Quality / ruff (push) Failing after 22s
Run Python tests (through Pytest) / Test (push) Failing after 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 21s

This commit is contained in:
Jon Michael Aanes 2025-05-26 16:27:50 +02:00
parent e811c48f17
commit fd3fd337b9

View File

@ -84,7 +84,7 @@ def parse_price(text: str, default_currency: Asset) -> AssetAmount | None:
"""
if isinstance(text, AssetAmount):
return text
text = str(text).lower().strip()
text = str(text).lower().replace('\n', ' ').replace('\t', ' ').strip()
if text == 'free':
return AssetAmount(default_currency, Decimal(0))