[qcookboob] interval number of persons
This commit is contained in:
parent
06b670af47
commit
aed9a8a511
1 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue