Marthee commited on
Commit
6339e12
·
verified ·
1 Parent(s): 5e73a2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -242,18 +242,15 @@ def findapiAllDocNoNotbilled():
242
  data = request.get_json()
243
  # Extracting values
244
  pdfLink = data.get('filePath')
245
- print(pdfLink)
246
- # listofheadings = data.get('listofheadings') #in json format
247
- # print(listofheadings)
248
- pdfbytes, pdf_document,tablepdfoutput,alltext= InitialMarkups.extract_section_under_header_FullDoc_WithoutNotBilled(pdfLink)
249
- global jsonoutput
250
- jsonoutput=tablepdfoutput
251
- return jsonify(alltext)
252
  except Exception as e:
253
  return jsonify({"error": str(e)}), 500
254
 
255
 
256
 
 
257
  ################################################################################################################################################################
258
  ################################################################################################################################################################
259
  ##################### For Rawan - MC Connection ###########################################################################################################
 
242
  data = request.get_json()
243
  # Extracting values
244
  pdfLink = data.get('filePath')
245
+ pdfbytes, pdf_document,tablepdfoutput, alltext_tobebilled,alltextNoNotbilled= InitialMarkups.extract_section_under_header_tobebilledOnly(pdfLink)
246
+
247
+ return jsonify(alltextNoNotbilled)
 
 
 
 
248
  except Exception as e:
249
  return jsonify({"error": str(e)}), 500
250
 
251
 
252
 
253
+
254
  ################################################################################################################################################################
255
  ################################################################################################################################################################
256
  ##################### For Rawan - MC Connection ###########################################################################################################