i hate this thing

master
km0 3 years ago
parent f65b56b397
commit fd3207f881

@ -87,9 +87,7 @@ def update_wiki(recipe):
text = page.text()
steps = ''
for log in recipe['logs']:
steps+= f'# {log}\n'
steps = [f"# {log}" for log in recipe["logs"]].join('\n')
# PROV TEMPLATE
content = f"""
@ -102,13 +100,14 @@ def update_wiki(recipe):
<br>
''' Process Log'''
<br>
{[f"# {log}" for log in recipe["logs"]].join('\n')}
{steps}
'''Who'''
<br>
{recipe['who']}
"""
text += textwrap.dedent(content)
# mi disp
text += [line.strip() for line in content.splitlines()].join('\n')
print(text)

Loading…
Cancel
Save