more nice things

This commit is contained in:
vabene1111
2018-02-05 23:59:31 +01:00
parent ede7ddac0b
commit 59641e1af6
10 changed files with 220 additions and 164 deletions

View File

@@ -7,7 +7,7 @@ from cookbook.helper import dropbox
def get_file_link(request, recipe_id):
recipe = Recipe.objects.get(id=recipe_id)
if recipe.link == "":
response = dropbox.get_share_link(recipe.path)
response = dropbox.get_share_link(recipe.path) # TODO response validation
recipe.link = response['url']
recipe.save()