|
|
@ -284,6 +284,7 @@ class Parser (Process):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
|
|
|
|
tmp = self.get.value(row,_info)
|
|
|
|
tmp = self.get.value(row,_info)
|
|
|
|
|
|
|
|
|
|
|
|
# if 'P1080351470' in content[0] and 'PLB' in row:
|
|
|
|
# if 'P1080351470' in content[0] and 'PLB' in row:
|
|
|
|
# print (_info)
|
|
|
|
# print (_info)
|
|
|
|
# print (row)
|
|
|
|
# print (row)
|
|
|
@ -300,10 +301,10 @@ class Parser (Process):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if label not in value:
|
|
|
|
if label not in value:
|
|
|
|
value[label] = [tmp]
|
|
|
|
value[label] = [tmp]
|
|
|
|
elif len(list(tmp.keys())) == 1 :
|
|
|
|
# elif len(list(tmp.keys())) == 1 :
|
|
|
|
# print "\t",len(claim[label]),tmp
|
|
|
|
# # print "\t",len(claim[label]),tmp
|
|
|
|
index = len(value[label]) -1
|
|
|
|
# index = len(value[label]) -1
|
|
|
|
value[label][index] = dict(value[label][index],**tmp)
|
|
|
|
# value[label][index] = dict(value[label][index],**tmp)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
value[label].append(tmp)
|
|
|
|
value[label].append(tmp)
|
|
|
|
tmp['_index'] = len(value[label]) -1
|
|
|
|
tmp['_index'] = len(value[label]) -1
|
|
|
|