mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 07:38:26 -05:00
fixed paprika servings import
This commit is contained in:
@@ -27,7 +27,7 @@ class Paprika(Integration):
|
|||||||
recipe.description = '' if len(recipe_json['description'].strip()) > 500 else recipe_json['description'].strip()
|
recipe.description = '' if len(recipe_json['description'].strip()) > 500 else recipe_json['description'].strip()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if 'servings' in recipe_json['servings']:
|
if 'servings' in recipe_json:
|
||||||
recipe.servings = parse_servings(recipe_json['servings'])
|
recipe.servings = parse_servings(recipe_json['servings'])
|
||||||
recipe.servings_text = parse_servings_text(recipe_json['servings'])
|
recipe.servings_text = parse_servings_text(recipe_json['servings'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user