Commit f7a4f907 authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

L2A product population

parent ea346881
......@@ -43,12 +43,14 @@ class Command(BaseCommand):
PRODUCT_EXISTS = Product_l2a.objects.filter(identifier=file_name).exists()
if not PRODUCT_EXISTS:
file_path = path + "/" + file
prod_l1c = Product_l1c.objects.filter(identifier=file_name.replace("L2A", "L1C"))[0]
product_l2a = Product_l2a(
prod_l1c = prod_l1c,
identifier = file_name,
file_path = path
file_path = file_path
)
product_l2a.save()
......
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