interval number of persons for all cookboob backends

This commit is contained in:
Julien Veyssier 2013-03-30 15:18:59 +01:00
commit 358881dd48
4 changed files with 5 additions and 5 deletions

View file

@ -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