mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
Allow empty instructions (#165)
This commit is contained in:
parent
97c20b384c
commit
98f5439907
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ def normalize_image_url(image) -> str:
|
|||
|
||||
|
||||
def normalize_instructions(instructions) -> List[dict]:
|
||||
if not instructions:
|
||||
return []
|
||||
|
||||
# One long string split by (possibly multiple) new lines
|
||||
if type(instructions) == str:
|
||||
return [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue