mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
more nice things
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user