mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Strip € from prices at import
This commit is contained in:
parent
9388365078
commit
1a0bda56b0
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ def datetime_field(value):
|
||||||
|
|
||||||
def price_field(value):
|
def price_field(value):
|
||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
value = value.replace(",", ".")
|
value = value.replace(",", ".").replace("€", "").strip()
|
||||||
return float(value)
|
return float(value)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue