mapa en modal

parent 896b8678
......@@ -66,7 +66,6 @@ def requestToImage(request):
img_link = request.GET['value']
#print(img_link)
r = requests.get(img_link, auth=("emmhp", "geoemm29"), stream=True)
print(r.content)
img_str = base64.b64encode(r.content)
#print(img_str)
img_str = img_str.decode('utf-8')
......
......@@ -177,13 +177,10 @@ def Reports(request):
wkt = USERS_PATH + request.user.email + "/" + str(producto['id']) + "/findProducts.json"
with open(wkt, 'r') as jsonfile:
polygon = json.load(jsonfile)
print(polygon['wkt'])
for file in os.listdir(path=zip_path):
if file.endswith(".zip"):
print(file)
zip = zip_path+"/"+file
print(zip)
productList.append({
"search_name": producto['search__search_name'],
"process": producto['search__process_id__name'],
......
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