bug fix .. top row (rewrite)

This commit is contained in:
Steve Nyemba 2021-02-15 22:37:00 -06:00
parent 45ac94bfc4
commit d2021bb430
1 changed files with 2 additions and 2 deletions

View File

@ -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()