From d51237ce983ba32334f152c14bb659d2f247728a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 18 Feb 2018 14:34:37 +0100 Subject: Imports: float/int remove spaces --- ishtar_common/data_importer.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/data_importer.py') 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: -- cgit v1.2.3