mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-26 05:34:21 -05:00
handle recipeInstructions that are given as json objects / name-value pairs (#509)
This commit is contained in:
@@ -70,6 +70,10 @@ class Cleaner:
|
||||
if not instructions:
|
||||
return []
|
||||
|
||||
# Dictionary (Keys: step number strings, Values: the instructions)
|
||||
if isinstance(instructions, dict):
|
||||
instructions = list(instructions.values())
|
||||
|
||||
if isinstance(instructions[0], list):
|
||||
instructions = instructions[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user