Explorar o código

enhancement: reference to the index of a container (new vocabulary)

Steve Nyemba %!s(int64=4) %!d(string=hai) anos
pai
achega
ac9119f407
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      healthcareio/x12/__init__.py

+ 2 - 1
healthcareio/x12/__init__.py

@@ -366,7 +366,7 @@ class Parser (Process):
         """
         key = row[0]        
         return self.cache[key] if key in self.cache else {}
-        pass
+        
     def apply(self,content,_code) :
         """
         :content    content of a file i.e a segment with the envelope
@@ -487,6 +487,7 @@ class Parser (Process):
         logs    = []
         claims  = []
         try:
+            self.cache = {}
             file = open(filename.strip())
             file = file.read().split('CLP')
             _code = '835'