Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,8 +295,9 @@ def measureproject(result,dataDoc=0,img=0,dxffile=0):
|
|
| 295 |
print(dbPath,result[0])
|
| 296 |
#
|
| 297 |
pdflink= tsadropboxretrieval.uploadanyFile(doc=doc,path=dbPath,pdfname=result[0]) #doc=doc,pdfname=path,pdfpath=pdfpath+'Measured Plan/'
|
| 298 |
-
|
| 299 |
_, buffer = cv2.imencode('.png', outputimg)
|
|
|
|
| 300 |
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()]
|
| 301 |
################################# -2.8- #################################
|
| 302 |
elif result[5][2].startswith('2.8'): #section value - 2.8 floor finishes
|
|
|
|
| 295 |
print(dbPath,result[0])
|
| 296 |
#
|
| 297 |
pdflink= tsadropboxretrieval.uploadanyFile(doc=doc,path=dbPath,pdfname=result[0]) #doc=doc,pdfname=path,pdfpath=pdfpath+'Measured Plan/'
|
| 298 |
+
|
| 299 |
_, buffer = cv2.imencode('.png', outputimg)
|
| 300 |
+
print('pleeeasee',SimilarAreaDictionary.to_dict(), spreadsheet_url,spreadsheetId,list1.to_dict(),pdflink,hatched_areas,namepathArr)
|
| 301 |
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()]
|
| 302 |
################################# -2.8- #################################
|
| 303 |
elif result[5][2].startswith('2.8'): #section value - 2.8 floor finishes
|