fixed recipekeeper integration

This commit is contained in:
vabene1111 2022-11-09 12:48:34 +01:00
parent 97503a68d8
commit c150c7f84e

View File

@ -58,6 +58,13 @@ class RecipeKeeper(Integration):
if s.text == "":
continue
step.instruction += s.text + ' \n'
step.save()
for s in file.find("div", {"itemprop": "recipeNotes"}).find_all("p"):
if s.text == "":
continue
step.instruction += s.text + ' \n'
step.save()
if file.find("span", {"itemprop": "recipeSource"}).text != '':
step.instruction += "\n\n" + _("Imported from") + ": " + file.find("span", {"itemprop": "recipeSource"}).text