Commit bc7cde7f authored by Giannis Tsapelas's avatar Giannis Tsapelas
Browse files

fix for metadata collection

parent 435df944
Pipeline #6982 passed with stages
in 2 minutes and 59 seconds
......@@ -77,11 +77,13 @@ def parse_dataset(profile):
dataset['table_name'] = profile['distribution']['accessDatabase']['accessTable']['label']
dims = []
if isinstance(profile['dimension'], dict):
dims.append(parse_field(profile['dimension']))
else:
for d in profile['dimension']:
dims.append(parse_field(d))
if 'dimension' in profile:
if isinstance(profile['dimension'], dict):
dims.append(parse_field(profile['dimension']))
else:
for d in profile['dimension']:
dims.append(parse_field(d))
dataset['dimensions'] = dims
vars = []
......
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