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
8d41936c
Commit
8d41936c
authored
Mar 06, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapa en modal
parent
896b8678
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
views.py
catalog/views.py
+0
-1
views.py
reports/views.py
+0
-3
No files found.
catalog/views.py
View file @
8d41936c
...
@@ -66,7 +66,6 @@ def requestToImage(request):
...
@@ -66,7 +66,6 @@ def requestToImage(request):
img_link
=
request
.
GET
[
'value'
]
img_link
=
request
.
GET
[
'value'
]
#print(img_link)
#print(img_link)
r
=
requests
.
get
(
img_link
,
auth
=
(
"emmhp"
,
"geoemm29"
),
stream
=
True
)
r
=
requests
.
get
(
img_link
,
auth
=
(
"emmhp"
,
"geoemm29"
),
stream
=
True
)
print
(
r
.
content
)
img_str
=
base64
.
b64encode
(
r
.
content
)
img_str
=
base64
.
b64encode
(
r
.
content
)
#print(img_str)
#print(img_str)
img_str
=
img_str
.
decode
(
'utf-8'
)
img_str
=
img_str
.
decode
(
'utf-8'
)
...
...
reports/views.py
View file @
8d41936c
...
@@ -177,13 +177,10 @@ def Reports(request):
...
@@ -177,13 +177,10 @@ def Reports(request):
wkt
=
USERS_PATH
+
request
.
user
.
email
+
"/"
+
str
(
producto
[
'id'
])
+
"/findProducts.json"
wkt
=
USERS_PATH
+
request
.
user
.
email
+
"/"
+
str
(
producto
[
'id'
])
+
"/findProducts.json"
with
open
(
wkt
,
'r'
)
as
jsonfile
:
with
open
(
wkt
,
'r'
)
as
jsonfile
:
polygon
=
json
.
load
(
jsonfile
)
polygon
=
json
.
load
(
jsonfile
)
print
(
polygon
[
'wkt'
])
for
file
in
os
.
listdir
(
path
=
zip_path
):
for
file
in
os
.
listdir
(
path
=
zip_path
):
if
file
.
endswith
(
".zip"
):
if
file
.
endswith
(
".zip"
):
print
(
file
)
zip
=
zip_path
+
"/"
+
file
zip
=
zip_path
+
"/"
+
file
print
(
zip
)
productList
.
append
({
productList
.
append
({
"search_name"
:
producto
[
'search__search_name'
],
"search_name"
:
producto
[
'search__search_name'
],
"process"
:
producto
[
'search__process_id__name'
],
"process"
:
producto
[
'search__process_id__name'
],
...
...
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