Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -154,10 +154,10 @@ def fix_links( links, credentials=None ):
if link['protocol'] == 'JSON' and 'download.data.grandlyon.com/ws' 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
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment