larimei commited on
Commit
371c01b
1 Parent(s): db088a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,10 +49,10 @@ def getRecipe(meal):
49
  #just one result
50
  #return json_object["hits"][0]
51
 
52
- returnString = "This is " + json_object["hits"][0]["recipe"]["label"] + ". \n\n It is Made out of following ingredients: \n\n"
53
  for line in json_object["hits"][0]["recipe"]["ingredientLines"]:
54
  returnString += line + "\n"
55
- returnString += "\n You can make it yourself by following the steps of this instruction: " + json_object["hits"][0]["recipe"]["url"]
56
 
57
  return returnString
58
 
 
49
  #just one result
50
  #return json_object["hits"][0]
51
 
52
+ returnString = "This is " + meal.replace("_"," ") + ". \n\n It is Made out of following ingredients: \n\n"
53
  for line in json_object["hits"][0]["recipe"]["ingredientLines"]:
54
  returnString += line + "\n"
55
+ returnString += "\n You can make "+ json_object["hits"][0]["recipe"]["label"] + " it yourself by following the steps of this instruction: " + json_object["hits"][0]["recipe"]["url"]
56
 
57
  return returnString
58