From 219dd5deee581675826ff51fd6f7e3dee021989b Mon Sep 17 00:00:00 2001 From: Ching Date: Mon, 4 Mar 2024 14:17:43 +0800 Subject: [PATCH] feat(api): Add source link to recipe description --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 61d7190..cc1d5ec 100644 --- a/app.py +++ b/app.py @@ -252,7 +252,8 @@ def add_recipe(): response_data = {"message": "Recipe already exists"} return jsonify(response_data), 400 xcf_recipe = get_recipe_from_xiachufang(url) - description = "" + description = "" + '来源' + "" + description += "
" if xcf_recipe['ingredients']: description += "

用料

\n" description += "