Commit b85075f6 authored by Alessandro CERIONI's avatar Alessandro CERIONI
Browse files

Applied fix to properly parse WS ressources related to non geographic datasets

parent d5403bd0
......@@ -154,10 +154,10 @@ def fix_links( links, credentials=None ):
if link['protocol'] == 'JSON' and '' in link['url']:
fixed_links[k]['protocol'] = 'WS'
tmp = fixed_links[k]['name']
fixed_links[k]['name'] = tmp.split('/')[0]
tmp = links[k]['url']
fixed_links[k]['name'] = tmp.split('/')[-2] # second to last element
#tmp = links[k]['url']
the_fixed_ws_url = '/'.join(tmp.split('/')[0:5])
fixed_links[k]['url'] = the_fixed_ws_url
Supports Markdown
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