fixed recipekeeper integration
This commit is contained in:
parent
97503a68d8
commit
c150c7f84e
@ -58,6 +58,13 @@ class RecipeKeeper(Integration):
|
|||||||
if s.text == "":
|
if s.text == "":
|
||||||
continue
|
continue
|
||||||
step.instruction += s.text + ' \n'
|
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 != '':
|
if file.find("span", {"itemprop": "recipeSource"}).text != '':
|
||||||
step.instruction += "\n\n" + _("Imported from") + ": " + file.find("span", {"itemprop": "recipeSource"}).text
|
step.instruction += "\n\n" + _("Imported from") + ": " + file.find("span", {"itemprop": "recipeSource"}).text
|
||||||
|
Loading…
Reference in New Issue
Block a user