Prices must be on one line
This commit is contained in:
parent
e811c48f17
commit
fd3fd337b9
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user