Marthee commited on
Commit
9182bf0
·
verified ·
1 Parent(s): 25992cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -471,10 +471,13 @@ def measureproject(result,dataDoc=0,img=0,dxffile=0,pdf_content=0):
471
  temp_file.write(dxfpath)
472
  temp_filename = temp_file.name
473
  print(temp_filename)
 
 
 
474
  if pdf_content:
475
- doc,outputimg, SimilarAreaDictionary ,spreadsheetId, spreadsheet_url , namepathArr , list1,hatched_areas=deploying_3_3.mainFunctionDrawImgPdf(dataDoc,temp_filename,result[4] , pdfpath,result[0],pdf_content)
476
  else:
477
- doc,outputimg, SimilarAreaDictionary ,spreadsheetId, spreadsheet_url , namepathArr , list1,hatched_areas=deploying_3_3.mainFunctionDrawImgPdf(dataDoc,temp_filename,result[4] , pdfpath,result[0])
478
  global colorsused
479
  colorsused=list(SimilarAreaDictionary['Color'])
480
  dbPath='/TSA JOBS/ADR Test'+pdfpath+'Measured Plan/'
 
471
  temp_file.write(dxfpath)
472
  temp_filename = temp_file.name
473
  print(temp_filename)
474
+
475
+ SearchArray=result[6]
476
+
477
  if pdf_content:
478
+ doc,outputimg, SimilarAreaDictionary ,spreadsheetId, spreadsheet_url , namepathArr , list1,hatched_areas=deploying_3_3.mainFunctionDrawImgPdf(dataDoc,temp_filename,result[4] ,SearchArray, pdfpath,result[0],pdf_content)
479
  else:
480
+ doc,outputimg, SimilarAreaDictionary ,spreadsheetId, spreadsheet_url , namepathArr , list1,hatched_areas=deploying_3_3.mainFunctionDrawImgPdf(dataDoc,temp_filename,result[4] ,SearchArray,pdfpath,result[0])
481
  global colorsused
482
  colorsused=list(SimilarAreaDictionary['Color'])
483
  dbPath='/TSA JOBS/ADR Test'+pdfpath+'Measured Plan/'