Commit 1b5b9fac authored by CubicERP Team yt's avatar CubicERP Team yt

Update cubicerpetl.py

parent 42e882cf
......@@ -302,7 +302,7 @@ class cbc_etl(object):
y = False
if type(y) is decimal.Decimal:
y = float(y)
elif type(y) is str and query_encoding:
elif type(y) not is str and query_encoding:
y = y.decode(query_encoding)
d[x] = y
else:
......@@ -311,7 +311,7 @@ class cbc_etl(object):
y = False
if type(y) is decimal.Decimal:
y = float(y)
elif type(y) is str and query_encoding:
elif type(y) not is str and query_encoding:
y = y.decode(query_encoding)
d[x] = y
res.append(d)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment