[cookboob] sometimes preparation time is not available

This commit is contained in:
Julien Veyssier 2013-03-30 16:12:53 +01:00
commit 6667c27f9c

View file

@ -39,6 +39,7 @@ class RecipeInfoFormatter(IFormatter):
result += 'ID: %s\n' % obj.fullid result += 'ID: %s\n' % obj.fullid
if not empty(obj.author): if not empty(obj.author):
result += 'Author: %s\n' % obj.author result += 'Author: %s\n' % obj.author
if not empty(obj.preparation_time):
result += 'Preparation time: %smin\n' % obj.preparation_time result += 'Preparation time: %smin\n' % obj.preparation_time
if not empty(obj.cooking_time): if not empty(obj.cooking_time):
result += 'Cooking time: %smin\n' % obj.cooking_time result += 'Cooking time: %smin\n' % obj.cooking_time