Kaynağa Gözat

bugfix: date pasing

Steve Nyemba 4 yıl önce
ebeveyn
işleme
9dd25a513f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      healthcareio/x12/__init__.py

+ 1 - 1
healthcareio/x12/__init__.py

@@ -286,7 +286,7 @@ class Parser (Process):
                     value = row[index] 
                     
                     if 'cast' in config and key in config['cast'] and value.strip() != '' :
-                        if config['cast'][key] in ['float','int'] and (value.replace.isnumeric() or (len(value.split('.')) == 1) and value.replace('.','').isnumeric() ):
+                        if config['cast'][key] in ['float','int'] and (value.isnumeric() or (len(value.split('.')) == 1) and value.replace('.','').isnumeric() ):
                             value = eval(config['cast'][key])(value)
                         elif hasattr(handler,config['cast'][key]):