descripcion reportes

parent d92d634a
......@@ -81,7 +81,7 @@ def report_L2ASCL(request, purchase_id):
"report_name": "SCL Image Classification Data(Km²)"
}
print (searchInfo['description'])
if os.path.exists(path + reporteDir + ".pdf"):
print ("si existe")
......@@ -162,7 +162,7 @@ def Reports(request):
# else:
# initial_folder = folders.pop(0) + "_sclData"
print(initial_folder)
zip_path = USERS_PATH + request.user.email + "/" + str(producto['id'])
# print(zip_path)
......@@ -515,6 +515,7 @@ def PDFGenerator(request,purchase_id):
style2 = styles2['Normal']
style2.alignment = 1
style2.fontSize = 15
style2.leading = 20
style3 = styles3['Normal']
style3.alignment = 1
......@@ -543,14 +544,14 @@ def PDFGenerator(request,purchase_id):
story.append(Paragraph("<strong>Clouds: "+str(searchInfo['clouds'])+" %</strong>", style2,))
story.append(Spacer(1, .70 * inch))
story.append(Paragraph("<strong>Description: </strong>", style2, ))
story.append(Spacer(1, .30 * inch))
story.append(Spacer(1, .10 * inch))
story.append(Paragraph(searchInfo['description'], style2,))
story.append(Spacer(1, .40 * inch))
story.append(PageBreak())
path, dirs, files = next(os.walk(thumbs))
print (len(files))
for index, file in enumerate(files):
values = []
labels = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment