Spaces:
Paused
Paused
Update app.py
Browse files
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] ,
|
| 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/'
|