Commit b54ffdbf authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

debug

parent 1274cd20
......@@ -6,6 +6,7 @@ Created on 18 juin 2021
import os
from eodag.utils.logging import setup_logging
from eodag.api.core import EODataAccessGateway
from eodag.api.search_result import SearchResult
from frozenapp.models import TileEnvelope
from django.contrib.gis.db.models.functions import Transform
from eodag.utils import ProgressCallback
......@@ -176,10 +177,12 @@ class EodagS1():
altdownloadedprods.append(self.products_downloaded[d][1])
print(f"\nSerializing downloaded products to {serialfile}")
self.mEODataAccessGateway.serialize(downloadedprods, serialfile)
dps = SearchResult(downloadedprods)
self.mEODataAccessGateway.serialize(dps, serialfile)
if len(altdownloadedprods) > 0 :
print(f"\nSerializing alternate products to {altserialfile}")
adps = SearchResult(altdownloadedprods)
self.mEODataAccessGateway.serialize(altdownloadedprods, altserialfile)
if remain == 1 :
......@@ -192,11 +195,13 @@ class EodagS1():
altremainingprods.append(self.products_availability[d][1])
print(f"\nSerializing downloaded products to {remainserialfile}")
self.mEODataAccessGateway.serialize(remainingprods, remainserialfile)
rps = SearchResult(remainingprods)
self.mEODataAccessGateway.serialize(rps, remainserialfile)
if len(altremainingprods) > 0 :
print(f"\nSerializing alternate products to {altremainserialfile}")
self.mEODataAccessGateway.serialize(altremainingprods, altremainserialfile)
arps = SearchResult(altremainingprods)
self.mEODataAccessGateway.serialize(arps, altremainserialfile)
......
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