Verified Commit 936fafdb authored by Huste, Tobias (FWCC) - 111645's avatar Huste, Tobias (FWCC) - 111645
Browse files

tasks: set default filename if url key is empty

parent 751d7418
......@@ -60,7 +60,7 @@ def create_objectversion_from_url(bucket_id, url, key=None):
# get key from url using urllib
url_parts = urlparse(url)
if not key:
key = url_parts[2].rpartition('/')[2]
key = url_parts[2].rpartition('/')[2] or 'data'
ObjectVersion.create(
bucket=bucket_id,
......
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