fixed link creation and updated model

This commit is contained in:
vabene1111
2018-06-06 23:31:47 +02:00
parent 2e2144a9e3
commit 8b6f7bd7cb
9 changed files with 23 additions and 46 deletions

View File

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