share link fixed

This commit is contained in:
vabene1111
2018-06-07 00:29:00 +02:00
parent b9994e6a45
commit be32b3f63e
3 changed files with 26 additions and 4 deletions

View File

@ -14,8 +14,7 @@ def get_file_link(request, recipe_id):
if recipe.storage.method == Storage.DROPBOX:
if recipe.link == "":
response = dropbox.get_share_link(recipe) # TODO response validation
recipe.link = response['url']
recipe.link = dropbox.get_share_link(recipe) # TODO response validation
recipe.save()
return HttpResponse(recipe.link)