Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
5775f3ae
Commit
5775f3ae
authored
Apr 11, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
descripcion reportes
parent
d92d634a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
views.py
reports/views.py
+5
-4
No files found.
reports/views.py
View file @
5775f3ae
...
...
@@ -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
,
.
3
0
*
inch
))
story
.
append
(
Spacer
(
1
,
.
1
0
*
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
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment