bug fix .. top row (rewrite)

master
Steve L. Nyemba 4 years ago
parent 45ac94bfc4
commit d2021bb430

@ -452,7 +452,7 @@ class Parser (Process):
claims = []
try:
file = open(filename.strip(),errors='ignore')
INITIAL_ROWS = list(islice(file,100)) #.readlines(4)
INITIAL_ROWS = list(islice(file,100)) # Read the first 100 lines (no particular reason)
_code = "unknown"
# if len(INITIAL_ROWS) == 1 :
# file = INITIAL_ROWS[0].split('~')
@ -560,7 +560,7 @@ class Parser (Process):
# claim = merger.merge(claim,self.apply(_toprows,_code))
# claims.append(dict(DEFAULT_VALUE,**claim))
claims.append(merger.merge(DEFAULT_VALUE,claim))
claims.append(merger.merge(DEFAULT_VALUE.copy(),claim))
if type(file) != list :
file.close()

Loading…
Cancel
Save