Marthee commited on
Commit
df721bf
·
verified ·
1 Parent(s): 64b6ec1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -38,7 +38,7 @@ import deploying_3_3
38
  import Doors_Schedule
39
  import Code_2_7
40
  import Counting_Columns_2_1
41
- import Find_Hyperlinking_text
42
  import ezdxf
43
  from flask import Flask, render_template, session, redirect, url_for
44
  from flask_session import Session # Capital "S"
@@ -365,7 +365,8 @@ def measureproject(result,dataDoc=0,img=0,dxffile=0):
365
  pdflink= tsadropboxretrieval.uploadanyFile(doc=doc,path=dbPath,pdfname=result[0]) #doc=doc,pdfname=path,pdfpath=pdfpath+'Measured Plan/'
366
 
367
  _, buffer = cv2.imencode('.png', outputimg)
368
- arr=[ base64.b64encode(buffer).decode('utf-8'),SimilarAreaDictionary.to_dict(), spreadsheet_url,spreadsheetId,[],list1.to_dict(),pdflink,hatched_areas,namepathArr]#,hatched_areas,namepathArr]# , spreadsheetId, spreadsheet_url , list1.to_dict()]
 
369
  ################################# -2.8- #################################
370
  elif result[5][2].startswith('2.8'): #section value - 2.8 floor finishes
371
  #vv[0] array of pdf names
@@ -979,7 +980,8 @@ def cvtSummarytoXML(jsdata):
979
  # print(result[1])
980
  xmllink=google_sheet_to_xml.create_xml(documentname=result[1],dbPath=path)
981
  return jsonify(xmllink)
982
-
 
983
  #_________________________________________________________________________________________________________________________
984
  #_________________________________________________________________________________________________________________________
985
 
@@ -988,7 +990,6 @@ def cvtSummarytoXML(jsdata):
988
 
989
  #_________________________________________________________________________________________________________________________
990
  #_________________________________________________________________________________________________________________________
991
-
992
  def runn():
993
  # app.run(host="127.0.0.1")
994
  from gevent.pywsgi import WSGIServer
 
38
  import Doors_Schedule
39
  import Code_2_7
40
  import Counting_Columns_2_1
41
+ # import Find_Hyperlinking_text
42
  import ezdxf
43
  from flask import Flask, render_template, session, redirect, url_for
44
  from flask_session import Session # Capital "S"
 
365
  pdflink= tsadropboxretrieval.uploadanyFile(doc=doc,path=dbPath,pdfname=result[0]) #doc=doc,pdfname=path,pdfpath=pdfpath+'Measured Plan/'
366
 
367
  _, buffer = cv2.imencode('.png', outputimg)
368
+ arr=[ base64.b64encode(buffer).decode('utf-8'),SimilarAreaDictionary.to_dict(), spreadsheet_url,spreadsheetId,[],list1.to_dict(),pdflink,[],namepathArr]#,hatched_areas,namepathArr]# , spreadsheetId, spreadsheet_url , list1.to_dict()]
369
+ # arr=[ base64.b64encode(buffer).decode('utf-8'),SimilarAreaDictionary.to_dict(), spreadsheet_url,spreadsheetId,[],list1.to_dict(),pdflink,hatched_areas,namepathArr]#,hatched_areas,namepathArr]# , spreadsheetId, spreadsheet_url , list1.to_dict()]
370
  ################################# -2.8- #################################
371
  elif result[5][2].startswith('2.8'): #section value - 2.8 floor finishes
372
  #vv[0] array of pdf names
 
980
  # print(result[1])
981
  xmllink=google_sheet_to_xml.create_xml(documentname=result[1],dbPath=path)
982
  return jsonify(xmllink)
983
+
984
+
985
  #_________________________________________________________________________________________________________________________
986
  #_________________________________________________________________________________________________________________________
987
 
 
990
 
991
  #_________________________________________________________________________________________________________________________
992
  #_________________________________________________________________________________________________________________________
 
993
  def runn():
994
  # app.run(host="127.0.0.1")
995
  from gevent.pywsgi import WSGIServer