Commit 9b46f025 authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

performance improvement

parent ce970c88
...@@ -198,11 +198,6 @@ def getFromCart(request): ...@@ -198,11 +198,6 @@ def getFromCart(request):
return JsonResponse({'product_list': prod_list}) return JsonResponse({'product_list': prod_list})
def L2ASCL_data(request):
with open("/home/mchc/data.json") as f:
json_data = json.load(f)
print(json_data)
return render(request, 'L2ASCL_data.html', {"labels":",".join([k for k in json_data]), "vegetation":[v["4"] for k,v in json_data.items()] })
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
def purchaseProduct(request): def purchaseProduct(request):
""" """
...@@ -223,6 +218,13 @@ def purchaseProduct(request): ...@@ -223,6 +218,13 @@ def purchaseProduct(request):
## TODO: Implement a webservice in server for downloading those non-existing L1C products. ## ## TODO: Implement a webservice in server for downloading those non-existing L1C products. ##
#-------------------------------------------------------------------------------
def L2ASCL_data(request):
with open("/home/mchc/data.json") as f:
json_data = json.load(f)
print(json_data)
return render(request, 'L2ASCL_data.html', {"labels":",".join([k for k in json_data]), "vegetation":[v["4"] for k,v in json_data.items()] })
......
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