interval number of persons for all cookboob backends
This commit is contained in:
parent
aed9a8a511
commit
358881dd48
4 changed files with 5 additions and 5 deletions
|
|
@ -112,7 +112,7 @@ class RecipePage(BasePage):
|
|||
cooking_time = cookmin
|
||||
l_nbpers = self.parser.select(self.document.getroot(), 'span#lblYield[itemprop=recipeYield]')
|
||||
if len(l_nbpers) > 0:
|
||||
nb_person = int(l_nbpers[0].text.split()[0])
|
||||
nb_person = [int(l_nbpers[0].text.split()[0])]
|
||||
|
||||
recipe = Recipe(id, title)
|
||||
recipe.preparation_time = preparation_time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue