Commit 7c2bc11f authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

findproducts

parent 78fe9aa8
......@@ -23,8 +23,8 @@ class Command(BaseCommand):
# products = options['products'].split()
products = findProducts.findSentinelProducts(options['wkt'][0], options['startDate'][0], options['endDate'][0], options['platform'][0], options['cloud'][0])
pl1c = Product_l1c.objects.all().filter(identifier_in=products)
pl2a = Product_l1c.objects.all().filter(identifier_in=pl1c)
pl1c = Product_l1c.objects.all().filter(identifier__in=products)
pl2a = Product_l1c.objects.all().filter(identifier__in=pl1c)
fileList = [ p.file_path for p in pl2a]
print fileList
......
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