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
d5f0769c
Commit
d5f0769c
authored
Mar 02, 2021
by
irving
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cambiado nombre de pdf generado
parent
9c1c5dd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Reports.html
reports/templates/Reports.html
+1
-1
views.py
reports/views.py
+4
-0
No files found.
reports/templates/Reports.html
View file @
d5f0769c
...
...
@@ -250,7 +250,7 @@
{%
endif
%}
class=
"btn btn-info btn-sm col-md-4 col-xs-4 col-sm-4 col-lg-4 col-xl-4"
target=
"_blank"
download=
"{{ product.
search_name }} ({{ product.purchase_date }}).pdf
"
>
download=
"{{ product.
pdf_name }}
"
>
<i
class=
"fa fa-file-pdf-o"
></i>
</a>
<!--a title="View Log" href="#" class="btn btn-info"
...
...
reports/views.py
View file @
d5f0769c
...
...
@@ -212,6 +212,9 @@ def Reports(request):
if
os
.
path
.
getsize
(
USERS_PATH
+
producto
[
'user__email'
]
+
"/"
+
str
(
producto
[
'id'
])
+
"/scl_data.json"
)
>
3
:
Data
=
True
pdfName
=
producto
[
'name'
]
.
replace
(
","
,
""
)
.
replace
(
" "
,
"_"
)
+
"_"
+
producto
[
'aggreg_date'
]
.
strftime
(
'
%
Y-
%
m-
%
d-
%
H:
%
M:
%
S'
)
+
".pdf"
print
(
pdfName
)
productList
.
append
({
"search_name"
:
producto
[
'name'
],
"description"
:
producto
[
'description'
],
...
...
@@ -229,6 +232,7 @@ def Reports(request):
"polygon"
:
polygon
[
'wkt'
],
"is_public"
:
producto
[
'is_public'
],
"scl_data"
:
Data
,
"pdf_name"
:
pdfName
})
size
=
0
final_size
=
0
...
...
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