fixed paprika servings import

This commit is contained in:
vabene1111 2022-05-11 17:05:47 +02:00
parent 55a84494c9
commit 5556555bca

View File

@ -27,7 +27,7 @@ class Paprika(Integration):
recipe.description = '' if len(recipe_json['description'].strip()) > 500 else recipe_json['description'].strip()
try:
if 'servings' in recipe_json['servings']:
if 'servings' in recipe_json:
recipe.servings = parse_servings(recipe_json['servings'])
recipe.servings_text = parse_servings_text(recipe_json['servings'])