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

debug

parent c2074427
......@@ -32,7 +32,13 @@ class EodagS1Downloader():
productOnline = None
productOffline = None
def print_ndict(data):
if type(data) == dict:
for k, v in data.items():
print("key: "+str(k))
print_json(v)
else:
print("value: "+str(data))
def __init__(self, mrgstile, startdate, enddate, downdir):
'''
......@@ -151,12 +157,10 @@ class EodagS1Downloader():
for p in sorted(products_availability, key=lambda k: len(products_availability[k]), reverse=True):
prod0 = products_availability[p][0]
prod0dict = prod0.as_dict()
for item in prod0dict.items():
print(item)
print_ndict(prod0dict)
prod1 = products_availability[p][1]
prod1dict = prod1.as_dict()
for item in prod1dict.items():
print(item)
print_ndict(prod1dict)
break
......
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