From aed9a8a511082007c699bc53499f6406b2e2ece0 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Sat, 30 Mar 2013 15:05:57 +0100 Subject: [PATCH] [qcookboob] interval number of persons --- weboob/applications/qcookboob/recipe.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weboob/applications/qcookboob/recipe.py b/weboob/applications/qcookboob/recipe.py index a72c59cd..bb9c3ff6 100644 --- a/weboob/applications/qcookboob/recipe.py +++ b/weboob/applications/qcookboob/recipe.py @@ -43,7 +43,10 @@ class Recipe(QFrame): if not empty(recipe.title): self.ui.titleLabel.setText(recipe.title) if not empty(recipe.nb_person): - self.ui.nbPersonLabel.setText('%s'%recipe.nb_person) + nbstr = '%s' % recipe.nb_person[0] + if len(recipe.nb_person) > 1: + nbstr += '/%s' % recipe.nb_person[1] + self.ui.nbPersonLabel.setText(nbstr) else: self.ui.nbPersonLabel.parent().hide() if not empty(recipe.preparation_time):