Marthee commited on
Commit
04f4367
·
verified ·
1 Parent(s): 052564a

Update InitialMarkups.py

Browse files
Files changed (1) hide show
  1. InitialMarkups.py +2 -2
InitialMarkups.py CHANGED
@@ -1997,7 +1997,7 @@ def extract_section_under_header_tobebilled2(pdf_path):
1997
 
1998
 
1999
 
2000
- def extract_section_under_header_tobebilledMultiplePDFSmarthe(multiplePDF_Paths):
2001
  # keywordstoSkip=["installation", "execution", "miscellaneous items", "workmanship", "testing", "labeling"]
2002
  filenames=[]
2003
  keywords = {'installation', 'execution', 'miscellaneous items', 'workmanship', 'testing', 'labeling'}
@@ -2184,7 +2184,7 @@ def extract_section_under_header_tobebilledMultiplePDFSmarthe(multiplePDF_Paths)
2184
  # and span['size'] >= subsubheaderFontSize
2185
  and span['size'] < mainHeaderFontSize)
2186
  ]
2187
- if header_spans and stringtowrite.startswith('To') and is_numbered(heading_to_search):
2188
  collecting = True
2189
  # if stringtowrite=='To be billed':
2190
  # Alltexttobebilled+='\n'
 
1997
 
1998
 
1999
 
2000
+ def extract_section_under_header_tobebilledMultiplePDFS(multiplePDF_Paths):
2001
  # keywordstoSkip=["installation", "execution", "miscellaneous items", "workmanship", "testing", "labeling"]
2002
  filenames=[]
2003
  keywords = {'installation', 'execution', 'miscellaneous items', 'workmanship', 'testing', 'labeling'}
 
2184
  # and span['size'] >= subsubheaderFontSize
2185
  and span['size'] < mainHeaderFontSize)
2186
  ]
2187
+ if header_spans and stringtowrite.startswith('To') :
2188
  collecting = True
2189
  # if stringtowrite=='To be billed':
2190
  # Alltexttobebilled+='\n'