mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -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]:
|
def normalize_instructions(instructions) -> List[dict]:
|
||||||
|
if not instructions:
|
||||||
|
return []
|
||||||
|
|
||||||
# One long string split by (possibly multiple) new lines
|
# One long string split by (possibly multiple) new lines
|
||||||
if type(instructions) == str:
|
if type(instructions) == str:
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue