Skip to content
Snippets Groups Projects
Commit 4b2c9aaf authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Fixed wrong input types for url unsplit

parent f94dcb00
No related branches found
No related tags found
2 merge requests!41Version 2.0.0,!38Merge py3 into dev
...@@ -252,7 +252,7 @@ def odsh_public_resource_url(res): ...@@ -252,7 +252,7 @@ def odsh_public_resource_url(res):
home = config.get('ckanext.odsh.public_url') home = config.get('ckanext.odsh.public_url')
if res.get('url_type',None) == 'upload' and 'url' in res: if res.get('url_type',None) == 'upload' and 'url' in res:
f = urlsplit(res['url']) f = urlsplit(res['url'])
return urlunsplit((0, 0, f[2], f[3], f[4])) return urlunsplit(('', '', f[2], f[3], f[4]))
else: else:
return res['url'] return res['url']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment