summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-02-18 14:34:37 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-02-18 14:34:37 +0100
commitfcb00f3d1f09f86f9819a4128f43594c5712bd4b (patch)
treee7efdf24d8f47394f10f644ba1967bc0125774a1 /ishtar_common
parente11aae53ab2c58911d6bca1f327d78dafc0920b7 (diff)
downloadIshtar-fcb00f3d1f09f86f9819a4128f43594c5712bd4b.tar.bz2
Ishtar-fcb00f3d1f09f86f9819a4128f43594c5712bd4b.zip
Imports: float/int remove spaces
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/data_importer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py
index e8ec43ab2..b2dd0d5a0 100644
--- a/ishtar_common/data_importer.py
+++ b/ishtar_common/data_importer.py
@@ -259,6 +259,7 @@ class BooleanFormater(Formater):
class FloatFormater(Formater):
def format(self, value):
value = value.strip().replace(',', '.')
+ value = value.replace(' ', '')
if not value:
return
try:
@@ -299,6 +300,7 @@ class YearNoFuturFormater(Formater):
class IntegerFormater(Formater):
def format(self, value):
value = value.strip()
+ value = value.replace(' ', '')
if not value:
return
try: