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

@ -96,7 +96,7 @@ class RecipePage(BasePage):
cooking_time = 60*cooking_time
if 'Nombre de personnes' in info_title.text:
if info_title.tail.strip() != '':
nb_person = int(info_title.tail)
nb_person = [int(info_title.tail)]
ingredients = []
p_ing = self.parser.select(main, 'div.data.top.left > div.content p')