list comprehension test ?

master
km0 3 years ago
parent 69f256daa5
commit f65b56b397

@ -102,12 +102,17 @@ def update_wiki(recipe):
<br> <br>
''' Process Log''' ''' Process Log'''
<br> <br>
{steps} {[f"# {log}" for log in recipe["logs"]].join('\n')}
'''Who''' '''Who'''
<br> <br>
{recipe['who']} {recipe['who']}
""" """
text += textwrap.dedent(content) text += textwrap.dedent(content)
print(text)
page.edit(text, f'Added a new recipe! {recipe["title"]}') page.edit(text, f'Added a new recipe! {recipe["title"]}')

Loading…
Cancel
Save